mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
30 lines
484 B
Makefile
30 lines
484 B
Makefile
#
|
|
# darkhttpd (c) 2003, Emil Mikulic.
|
|
#
|
|
|
|
CC ?= cc
|
|
CFLAGS ?= -pipe -O2
|
|
|
|
TARGETS = bsd linux solaris
|
|
.PHONY: all $(TARGETS)
|
|
|
|
all:
|
|
@echo "+----- ---- --- -- -"
|
|
@echo "| Please run:"
|
|
@echo "| make <target>"
|
|
@echo "| Where target is one of the following:"
|
|
@echo "| $(TARGETS)"
|
|
@echo "+----- ---- --- -- -"
|
|
|
|
bsd linux:
|
|
make darkhttpd
|
|
|
|
solaris:
|
|
make darkhttpd LIBS=-lxnet
|
|
|
|
darkhttpd: darkhttpd.c
|
|
$(CC) $(CFLAGS) $(LIBS) $< -o $@
|
|
|
|
clean:
|
|
rm -f darkhttpd core darkhttpd.core
|