CFLAGS=-Wall -DDEBUG PROGS= esehttpd esehttpd-static ESEDIR=/var/tmp/esehttpd all: $(PROGS) esehttpd: \ esehttpd.c \ esewebserver.c main_page.c \ http_common.c \ common.c acl.c sep_token.c $(CC) $(CFLAGS) -o $@ $^ -lwrap -lnsl esehttpd-static: \ esehttpd.c \ esewebserver.c main_page.c \ http_common.c \ common.c acl.c sep_token.c $(CC) $(CFLAGS) -o $@ $^ -lwrap -lnsl -static strip -s $@ esedir: if [ ! -d $(ESEDIR) ] ; then mkdir -p $(ESEDIR) ; fi cp *.jpg $(ESEDIR) clean: rm -f $(PROGS) rm -f *.o rm -f *~ core