diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2011-11-21 19:17:22 +0100 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2011-11-21 19:17:22 +0100 |
commit | 1ac6a78d69634e5c54bb8b6182995d1d84a9cf71 (patch) | |
tree | a45f27a84b18d549f075829d315ecb6b68505a6d | |
parent | 6a9192d4d4f1d5c6849de158a707f4cc759c3ea5 (diff) | |
download | MAC-Telnet-1ac6a78d69634e5c54bb8b6182995d1d84a9cf71.tar.gz MAC-Telnet-1ac6a78d69634e5c54bb8b6182995d1d84a9cf71.zip |
Fix Makefile to include LDFLAGS and LIBSv0.3.4
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,8 +1,7 @@ CC?=gcc -# Run this with make CFLAGS=-lrt if you want to compile on kfreebsd -#CFLAGS+= -lrt +# Run this with make LIBS=-lrt if you want to compile on kfreebsd all: macping mndp mactelnet mactelnetd @@ -39,13 +38,13 @@ md5.o: md5.c md5.h ${CC} -Wall ${CFLAGS} -c md5.c mactelnet: config.h mactelnet.c mactelnet.h protocol.o console.c console.h interfaces.o md5.o - ${CC} -Wall ${CFLAGS} -o mactelnet mactelnet.c protocol.o console.c interfaces.o md5.o + ${CC} -Wall ${CFLAGS} ${LDFLAGS} -o mactelnet mactelnet.c protocol.o console.c interfaces.o md5.o ${LIBS} mactelnetd: config.h mactelnetd.c protocol.o interfaces.o console.c console.h users.o users.h md5.o - ${CC} -Wall ${CFLAGS} -o mactelnetd mactelnetd.c protocol.o console.c interfaces.o users.o md5.o + ${CC} -Wall ${CFLAGS} ${LDFLAGS} -o mactelnetd mactelnetd.c protocol.o console.c interfaces.o users.o md5.o ${LIBS} mndp: config.h mndp.c protocol.o - ${CC} -Wall ${CFLAGS} -o mndp mndp.c protocol.o + ${CC} -Wall ${CFLAGS} ${LDFLAGS} -o mndp mndp.c protocol.o ${LIBS} macping: config.h macping.c interfaces.o protocol.o - ${CC} -Wall ${CFLAGS} -o macping macping.c interfaces.o protocol.o + ${CC} -Wall ${CFLAGS} ${LDFLAGS} -o macping macping.c interfaces.o protocol.o ${LIBS} |