mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Simplify the Makefile.
This commit is contained in:
parent
4cddcf96a5
commit
1a161a47ce
@ -2,28 +2,15 @@
|
|||||||
|
|
||||||
CC?=cc
|
CC?=cc
|
||||||
CFLAGS?=-O
|
CFLAGS?=-O
|
||||||
|
LIBS=`[ \`/usr/bin/uname\` = "SunOS" ] && echo -lsocket -lnsl`
|
||||||
|
|
||||||
TARGETS = bsd linux solaris
|
TARGETS = bsd linux solaris
|
||||||
.PHONY: all $(TARGETS)
|
.PHONY: all $(TARGETS)
|
||||||
|
|
||||||
all:
|
all: darkhttpd
|
||||||
@echo "+----- ---- --- -- -"
|
|
||||||
@echo "| Please run:"
|
|
||||||
@echo "| make <target>"
|
|
||||||
@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"
|
|
||||||
|
|
||||||
darkhttpd: darkhttpd.c
|
darkhttpd: darkhttpd.c
|
||||||
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o darkhttpd
|
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f darkhttpd core darkhttpd.core
|
rm -f darkhttpd core darkhttpd.core
|
||||||
|
Loading…
Reference in New Issue
Block a user