about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-03-26 17:20:20 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-03-26 17:20:20 +0100
commitc378af3b87ae67d1bdf5c70506177f8bb1f73cae (patch)
tree3379bacf8301d8a4e2c333d843add66a827713d2
parent26ddf26e896c991439df07a57718b28682650405 (diff)
downloadoutils-c378af3b87ae67d1bdf5c70506177f8bb1f73cae.tar.gz
outils-c378af3b87ae67d1bdf5c70506177f8bb1f73cae.tar.xz
outils-c378af3b87ae67d1bdf5c70506177f8bb1f73cae.zip
Makefile: a bit more flexible.
Closes #1.
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 987387a..6d914ca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
-CFLAGS=-Wall -O2
+CFLAGS?=-Wall -O2
 CPPFLAGS=-include src/liboutils/outils.h -isystem src/liboutils/include -Isrc/bin/md5 -D_GNU_SOURCE -D_DEFAULT_SOURCE -DNO_UTIL
-LDFLAGS=-Wl,--as-needed -lcrypto -lm
+LDFLAGS=-Wl,--as-needed
+LIBS=-lcrypto -lm
 
 %: %.o
-	$(CC) -o $@ $^ $(LDFLAGS)
+	$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
 
 ALL=src/usr.bin/apply/apply src/usr.bin/jot/jot src/usr.bin/lam/lam src/usr.bin/lndir/lndir src/bin/md5/md5 src/usr.bin/rs/rs src/usr.bin/gzsig/gzsig src/usr.bin/signify/signify src/usr.bin/calendar/calendar src/usr.bin/vis/vis src/usr.bin/unvis/unvis src/usr.bin/what/what src/usr.sbin/rdate/rdate 
 all: $(ALL)