mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
User specifies platform, like mpg123.
This commit is contained in:
parent
108eb4cce3
commit
af46f81440
@ -1,12 +1,29 @@
|
|||||||
ALLWARNS = -Wall -Wshadow -Wpointer-arith -Wcast-qual \
|
#
|
||||||
-Wcast-align -Wwrite-strings -Wconversion -Waggregate-return \
|
# darkhttpd (c) 2003, Emil Mikulic.
|
||||||
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
|
#
|
||||||
-Wredundant-decls -Wnested-externs -Wlong-long -Winline
|
|
||||||
|
|
||||||
CFLAGS = -O -pipe -ansi -pedantic -g $(ALLWARNS)
|
CC ?= cc
|
||||||
|
CFLAGS ?= -pipe -O2
|
||||||
|
|
||||||
|
TARGETS = bsd linux solaris
|
||||||
|
.PHONY: all $(TARGETS)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
gcc -o out $(CFLAGS) darkhttpd.c
|
@echo "+----- ---- --- -- -"
|
||||||
|
@echo "| Please run:"
|
||||||
|
@echo "| make <target>"
|
||||||
|
@echo "| Where target is one of the following:"
|
||||||
|
@echo "| $(TARGETS)"
|
||||||
|
@echo "+----- ---- --- -- -"
|
||||||
|
|
||||||
splint:
|
bsd linux:
|
||||||
splint -weak -skipposixheaders +posixlib +stats darkhttpd.c
|
make darkhttpd
|
||||||
|
|
||||||
|
solaris:
|
||||||
|
make darkhttpd LIBS=-lxnet
|
||||||
|
|
||||||
|
darkhttpd: darkhttpd.c
|
||||||
|
$(CC) $(CFLAGS) $(LIBS) $< -o $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f darkhttpd core darkhttpd.core
|
||||||
|
Loading…
Reference in New Issue
Block a user