diff -r fc8d05972af7 -r 3238f65db163 test/Makefile --- a/test/Makefile Thu Sep 05 13:55:04 2013 +0200 +++ b/test/Makefile Fri Sep 06 13:20:20 2013 +0200 @@ -26,6 +26,7 @@ # POSSIBILITY OF SUCH DAMAGE. # +include ../unix.mk include ../$(CONF).mk SRC = main.c @@ -38,16 +39,14 @@ SRC += buffer_tests.c SRC += utils_tests.c -OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) - -all: ../build/test1 +OBJ = $(SRC:%.c=../build/%$(OBJ_EXT)) -../build/test1: $(OBJ) +all: $(OBJ) $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \ - ../build/libucx.$(LIB_EXT) + ../build/libucx$(LIB_EXT) -../build/%.$(OBJ_EXT): %.c ../build +../build/%$(OBJ_EXT): %.c | ../build $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $< ../build: - mkdir -p build + $(MKDIR) $(MKDIRFLAGS) build