test/Makefile

changeset 213
fa8b745be7b5
parent 192
1e51558b9d09
child 225
a1a068c2c4ef
equal deleted inserted replaced
212:c766c423dee6 213:fa8b745be7b5
45 OBJ_D = $(SRC:%.c=../build/debug/test/%$(OBJ_EXT)) 45 OBJ_D = $(SRC:%.c=../build/debug/test/%$(OBJ_EXT))
46 46
47 all: ../build/release/test ../build/release/test/ucxtest$(APP_EXT) 47 all: ../build/release/test ../build/release/test/ucxtest$(APP_EXT)
48 debug: ../build/debug/test ../build/debug/test/ucxtest$(APP_EXT) 48 debug: ../build/debug/test ../build/debug/test/ucxtest$(APP_EXT)
49 49
50 ../build/release/test/ucxtest$(APP_EXT): $(OBJ) 50 ../build/release/test/ucxtest$(APP_EXT): FORCE $(OBJ)
51 $(LD) $(LDFLAGS) -o ../build/release/test/ucxtest$(APP_EXT) \ 51 $(LD) $(LDFLAGS) -o ../build/release/test/ucxtest$(APP_EXT) \
52 $(OBJ) ../build/release/libucx$(LIB_EXT) 52 $(OBJ) ../build/release/libucx$(LIB_EXT)
53 53
54 ../build/release/test/%$(OBJ_EXT): %.c 54 ../build/release/test/%$(OBJ_EXT): %.c
55 $(CC) $(CFLAGS) -I../ -o $@ -c $< 55 $(CC) $(CFLAGS) -I../ -o $@ -c $<
56 56
57 ../build/release/test: 57 ../build/release/test:
58 $(MKDIR) $(MKDIRFLAGS) ../build/release/test 58 $(MKDIR) $(MKDIRFLAGS) ../build/release/test
59 59
60 ../build/debug/test/ucxtest$(APP_EXT): $(OBJ_D) 60 ../build/debug/test/ucxtest$(APP_EXT): FORCE $(OBJ_D)
61 $(LD) $(LDFLAGS) -o ../build/debug/test/ucxtest$(APP_EXT) \ 61 $(LD) $(LDFLAGS) -o ../build/debug/test/ucxtest$(APP_EXT) \
62 $(OBJ_D) ../build/debug/libucx$(LIB_EXT) 62 $(OBJ_D) ../build/debug/libucx$(LIB_EXT)
63 63
64 ../build/debug/test/%$(OBJ_EXT): %.c 64 ../build/debug/test/%$(OBJ_EXT): %.c
65 $(CC) $(CFLAGS_D) -I../ -o $@ -c $< 65 $(CC) $(CFLAGS_D) -I../ -o $@ -c $<
66 66
67 ../build/debug/test: 67 ../build/debug/test:
68 $(MKDIR) $(MKDIRFLAGS) ../build/debug/test 68 $(MKDIR) $(MKDIRFLAGS) ../build/debug/test
69
70 # force rebuild of test binary (library might have been changed)
71 FORCE:
72

mercurial