fix the all target
authorTero Marttila <terom@fixme.fi>
Sat, 11 Oct 2008 21:23:03 +0300
changeset 19 c4b163491900
parent 18 b12e78767248
child 20 f0ef6d8880b4
fix the all target
Makefile
--- a/Makefile	Sat Oct 11 20:45:28 2008 +0300
+++ b/Makefile	Sat Oct 11 21:23:03 2008 +0300
@@ -9,7 +9,8 @@
 DEFINES = -D_FILE_OFFSET_BITS=64
 MY_CFLAGS = -Wall -g -std=gnu99
 
-BIN_NAMES = hello helloworld
+BIN_NAMES = helloworld hello simple_hello evpq_test url_test
+BIN_PATHS = $(addprefix bin/,$(BIN_NAMES))
 
 # first target
 all: ${BIN_PATHS}
@@ -26,12 +27,10 @@
 CFLAGSX = ${DEFINES} ${MY_CFLAGS}
 CFLAGS = ${INCLUDE_PATHS} ${CFLAGSX}
 
-SRC_PATHS = $(wildcard src/*.c)
+SRC_PATHS = $(wildcard src/*.c) $(wildcard src/*/*.c)
 SRC_NAMES = $(patsubst src/%,%,$(SRC_PATHS))
 SRC_DIRS = $(dir $(SRC_NAMES))
 
-BIN_PATHS = $(addprefix bin/,$(BIN_NAMES))
-
 # other targets
 clean :
 	-rm obj/* bin/*