rwth-netprg/session4/select/Makefile
2015-05-31 13:09:45 +02:00

23 lines
352 B
Makefile

TARGETS = httpd httpd6 httpdgai
CC = gcc
CFLAGS = -g -std=c99
all: $(TARGETS) Makefile
httpd6: CFLAGS += -DIPV6
httpdgai: CFLAGS += -DGAI
httpdgai httpd httpd6: httpd.c readline.c
$(CC) $(CFLAGS) $^ -o $@
test: httpd
sudo -i && ./httpd www 80 &
wget http://localhost:80
killall httpd
clean:
rm -f $(TARGETS)
rm -f *.o *~
.PHONY: all clean