forked from robdelacruz/lkwebserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (17 loc) · 775 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS=-g -Wall
LIBS=
LKLIB_SRC=lklib.c lkstring.c lkstringtable.c lkbuffer.c lknet.c lkstringlist.c lkreflist.c lkalloc.c
LKNET_SRC=lkhttpserver.c lkcontext.c lkhttprequestparser.c lkhttpcgiparser.c lkconfig.c
#DEFINES=-DDEBUGALLOC
DEFINES=
all: lkws tclient lktest
lkws: lkws.c $(LKLIB_SRC) $(LKNET_SRC)
gcc -o lkws lkws.c $(LKLIB_SRC) $(LKNET_SRC) $(DEFINES) $(CFLAGS) $(LIBS)
tclient: tclient.c $(LKLIB_SRC) $(LKNET_SRC)
gcc -o tclient tclient.c $(LKLIB_SRC) $(LKNET_SRC) $(DEFINES) $(CFLAGS) $(LIBS)
lktest: lktest.c $(LKLIB_SRC) $(LKNET_SRC)
gcc -o lktest lktest.c $(LKLIB_SRC) $(LKNET_SRC) $(DEFINES) $(CFLAGS) $(LIBS)
t: t.c $(LKLIB_SRC) $(LKNET_SRC)
gcc -o t t.c $(LKLIB_SRC) $(LKNET_SRC) $(DEFINES) $(CFLAGS) $(LIBS)
clean:
rm -rf t lkws tclient lktest