test/Makefile

changeset 154
8346aebfbb7b
parent 152
3238f65db163
child 155
45395ba5ed30
equal deleted inserted replaced
153:2d3d1313862a 154:8346aebfbb7b
39 SRC += buffer_tests.c 39 SRC += buffer_tests.c
40 SRC += utils_tests.c 40 SRC += utils_tests.c
41 41
42 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT)) 42 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
43 43
44 all: $(OBJ) 44 all: ../build/ ../build/test
45
46 ../build/test: $(OBJ)
45 $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \ 47 $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \
46 ../build/libucx$(LIB_EXT) 48 ../build/libucx$(LIB_EXT)
47 49
48 ../build/%$(OBJ_EXT): %.c | ../build 50 ../build/%$(OBJ_EXT): %.c
49 $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $< 51 $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $<
50 52
51 ../build: 53 ../build:
52 $(MKDIR) $(MKDIRFLAGS) build 54 $(MKDIR) $(MKDIRFLAGS) ../build/test

mercurial