PageRenderTime 253ms CodeModel.GetById 140ms app.highlight 4ms RepoModel.GetById 107ms app.codeStats 0ms

/www/net/Makefile

http://xhttpd.googlecode.com/
Makefile | 28 lines | 26 code | 2 blank | 0 comment | 0 complexity | c4c44ae25dc0de9a785ec9e0291b583e MD5 | raw file
 1include ../../make.conf
 2XOBJS=
 3OBJS=netdev mac
 4FLGS=-O3 -I../cgilib/  ../cgilib/cgilib.c
 5all:
 6	@for obj in $(OBJS); do \
 7	echo "$(CC) $(CFLAGS) $(FLGS) $$obj$(CEXT) -o $$obj$(CGIEXT)"; \
 8	$(CC) $(CFLAGS) $(FLGS) $$obj$(CEXT) -o $$obj$(CGIEXT); \
 9	chmod 755 $$obj$(CGIEXT);\
10	done;
11	@for obj in $(XOBJS); do \
12	echo "$(CC) $(CFLAGS) $(FLGS) $$obj$(CEXT) -o $$obj$(XCGIEXT)"; \
13	$(CC) $(CFLAGS) $(FLGS) $$obj$(CEXT) -o $$obj$(XCGIEXT); \
14	chmod 755 $$obj$(XCGIEXT);\
15	done;
16
17clean:
18	@for obj in $(OBJS); do \
19	echo "rm -rf $$obj$(CGIEXT)"; \
20	rm -rf $$obj$(CGIEXT); \
21	done;
22	@for obj in $(XOBJS); do \
23	echo "rm -rf $$obj$(XCGIEXT)"; \
24	rm -rf $$obj$(XCGIEXT); \
25	done;
26	@echo "rm -rf *.o"
27	@rm -rf *.o
28