test/Makefile

changeset 154
8346aebfbb7b
parent 152
3238f65db163
child 155
45395ba5ed30
--- a/test/Makefile	Fri Sep 06 13:28:05 2013 +0200
+++ b/test/Makefile	Fri Sep 06 17:01:53 2013 +0200
@@ -41,12 +41,14 @@
 
 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
 
-all: $(OBJ)
+all: ../build/ ../build/test
+
+../build/test: $(OBJ)
 	$(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \
 		../build/libucx$(LIB_EXT)
 
-../build/%$(OBJ_EXT): %.c | ../build
+../build/%$(OBJ_EXT): %.c
 	$(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $<
 
 ../build:
-	$(MKDIR) $(MKDIRFLAGS) build
+	$(MKDIR) $(MKDIRFLAGS) ../build/test

mercurial