summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/Makefile.libm3socks
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lang/modula-3-socks/files/Makefile.libm3socks19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/modula-3-socks/files/Makefile.libm3socks b/lang/modula-3-socks/files/Makefile.libm3socks
new file mode 100644
index 000000000000..362d11e25025
--- /dev/null
+++ b/lang/modula-3-socks/files/Makefile.libm3socks
@@ -0,0 +1,19 @@
+PROG= libm3socks.so
+SRCS= accept.c bind.c close.c connect.c dup.c dup2.c \
+ gethostbyaddr.c gethostbyname.c getpeername.c getsockname.c \
+ listen.c read.c recv.c recvfrom.c select.c send.c sendto.c \
+ shutdown.c socket.c socksconf.h wrap.h write.c \
+ Xconnect.c bytes.c check_cconf.c check_user.c percent_x.c \
+ saddrtoname.c shell_cmd.c stubs.c
+CFLAGS+= -I${.CURDIR}/../SOCKS-SOURCE/h -DPIC -fpic -w
+LDFLAGS+= -Bshareable
+BINDIR= ${PREFIX}/lib/m3/FreeBSD2
+NOMAN= yes
+
+.PATH: ${.CURDIR}/../SOCKS-SOURCE/lib \
+ ${.CURDIR}/../SOCKS-SOURCE/client
+
+${PROG}:
+ ${LD} -o ${PROG} ${LDFLAGS} ${OBJS} ${LDADD}
+
+.include <bsd.prog.mk>