--- 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