summaryrefslogtreecommitdiff
path: root/src/webserver
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-03-16 00:38:02 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-03-16 09:02:18 -0700
commite49bce26d3de1a5c2afbe018a869ff8790294fc5 (patch)
treeb01ec81aa67181812303afd4e51bc759bba2a384 /src/webserver
parent3f0ce47e23fa226b30a4322660b8aab3e74d5240 (diff)
downloadtmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.tar.gz
tmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.tar.bz2
tmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.tar.xz
tmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.zip
Use makefiles correctly and expand include dirs
Diffstat (limited to 'src/webserver')
-rw-r--r--src/webserver/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/webserver/Makefile b/src/webserver/Makefile
index 417fa7c..5bfa83f 100644
--- a/src/webserver/Makefile
+++ b/src/webserver/Makefile
@@ -1,20 +1,9 @@
include ../../make.defs
-all:
- #Generate framework...
- $(CC) $(CFLAGS) -c parse.c
- $(CC) $(CFLAGS) -c generate.c
- $(CC) $(CFLAGS) -c htmlstyle.c
- $(CC) $(CFLAGS) -c logs.c
-
- #Generate "pages"...
- cd pages && $(CC) $(CFLAGS) -c about.c && cd ..
- cd pages && $(CC) $(CFLAGS) -c sample.c && cd ..
- cd pages && $(CC) $(CFLAGS) -c notdone.c && cd ..
-
- #Building the server...
- $(CC) $(CFLAGS) -o webserver main.c parse.o generate.o htmlstyle.o \
- logs.o pages/about.o pages/sample.o pages/notdone.o
+OBJ = main.o parse.o generate.o htmlstyle.o logs.o pages/about.o pages/sample.o pages/notdone.o
+all: webserver
+webserver: ${OBJ}
+ ${CC} ${CFLAGS} -o $@ ${OBJ}