Commit 5f754885 authored by Andreas Kempe's avatar Andreas Kempe
Browse files

Use FreeBSD make functions

parent 31ef2c75
socker
*.so
*.so*
*.pico
......@@ -5,13 +5,15 @@ CFLAGS ?=
.SILENT: clean
socker: *.pony compressors/*.pony libsockserr.so libcompressor.so
ponyc -p $(.CURDIR)
ponyc -p $(.CURDIR) -p $(.CURDIR)/sockserr -p $(.CURDIR)/compressors
libsockserr.so: socks_error.c
$(CC) -shared -fPIC $(CFLAGS) -o $(.TARGET) $(.ALLSRC)
libsockserr.so:
make -C $(.CURDIR)/sockserr
libcompressor.so: compressors/zlib.c
$(CC) -shared -fPIC -lz $(CFLAGS) -o $(.TARGET) $(.ALLSRC)
libcompressor.so:
make -C $(.CURDIR)/compressors
clean:
- rm -f libsockserr.so libcompressor.so socker 2>&1
- rm -f socker 2>&1
- make -C $(.CURDIR)/sockserr clean
- make -C $(.CURDIR)/compressors clean
SHLIB=compressor
SHLIB_MAJOR=0
SRCS=zlib.c
.include <bsd.lib.mk>
socks_error.o: socks_error.c /usr/include/errno.h \
/usr/include/sys/cdefs.h /usr/include/stdint.h \
/usr/include/sys/_types.h /usr/include/machine/_types.h \
/usr/include/x86/_types.h /usr/include/machine/_limits.h \
/usr/include/x86/_limits.h /usr/include/machine/_stdint.h \
/usr/include/x86/_stdint.h /usr/include/sys/_stdint.h
socks_error.po: socks_error.c /usr/include/errno.h \
/usr/include/sys/cdefs.h /usr/include/stdint.h \
/usr/include/sys/_types.h /usr/include/machine/_types.h \
/usr/include/x86/_types.h /usr/include/machine/_limits.h \
/usr/include/x86/_limits.h /usr/include/machine/_stdint.h \
/usr/include/x86/_stdint.h /usr/include/sys/_stdint.h
sockserr.pico: sockserr.c /usr/include/errno.h /usr/include/sys/cdefs.h \
/usr/include/stdint.h /usr/include/sys/_types.h \
/usr/include/machine/_types.h /usr/include/x86/_types.h \
/usr/include/machine/_limits.h /usr/include/x86/_limits.h \
/usr/include/machine/_stdint.h /usr/include/x86/_stdint.h \
/usr/include/sys/_stdint.h
sockserror.o: sockserror.c /usr/include/errno.h /usr/include/sys/cdefs.h \
/usr/include/stdint.h /usr/include/sys/_types.h \
/usr/include/machine/_types.h /usr/include/x86/_types.h \
/usr/include/machine/_limits.h /usr/include/x86/_limits.h \
/usr/include/machine/_stdint.h /usr/include/x86/_stdint.h \
/usr/include/sys/_stdint.h
sockserror.pico: sockserror.c /usr/include/errno.h \
/usr/include/sys/cdefs.h /usr/include/stdint.h \
/usr/include/sys/_types.h /usr/include/machine/_types.h \
/usr/include/x86/_types.h /usr/include/machine/_limits.h \
/usr/include/x86/_limits.h /usr/include/machine/_stdint.h \
/usr/include/x86/_stdint.h /usr/include/sys/_stdint.h
sockserror.po: sockserror.c /usr/include/errno.h /usr/include/sys/cdefs.h \
/usr/include/stdint.h /usr/include/sys/_types.h \
/usr/include/machine/_types.h /usr/include/x86/_types.h \
/usr/include/machine/_limits.h /usr/include/x86/_limits.h \
/usr/include/machine/_stdint.h /usr/include/x86/_stdint.h \
/usr/include/sys/_stdint.h
SHLIB=sockserr
SHLIB_MAJOR=0
SRCS=sockserr.c
.include <bsd.lib.mk>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment