From 1a161a47ce13875d5d4de28f76610d196dc7edac Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Thu, 14 Dec 2006 10:10:46 +0000 Subject: [PATCH] Simplify the Makefile. --- trunk/Makefile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/trunk/Makefile b/trunk/Makefile index 7294b61..f901a18 100644 --- a/trunk/Makefile +++ b/trunk/Makefile @@ -2,28 +2,15 @@ CC?=cc CFLAGS?=-O +LIBS=`[ \`/usr/bin/uname\` = "SunOS" ] && echo -lsocket -lnsl` TARGETS = bsd linux solaris .PHONY: all $(TARGETS) -all: - @echo "+----- ---- --- -- -" - @echo "| Please run:" - @echo "| make " - @echo "| Where target is one of the following:" - @echo "| $(TARGETS)" - @echo "+----- ---- --- -- -" - -bsd linux: - rm -f darkhttpd - ${MAKE} darkhttpd - -solaris: - rm -f darkhttpd - ${MAKE} darkhttpd LIBS="-lxnet -lsendfile" +all: darkhttpd darkhttpd: darkhttpd.c - $(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o darkhttpd + $(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o $@ clean: rm -f darkhttpd core darkhttpd.core