test/Makefile

changeset 747
efbd59642577
parent 742
7e67689241fd
child 792
4e4e5bbad164
equal deleted inserted replaced
746:a569148841ff 747:efbd59642577
29 BUILD_ROOT = .. 29 BUILD_ROOT = ..
30 30
31 include ../config.mk 31 include ../config.mk
32 32
33 TEST_SRC = main.c 33 TEST_SRC = main.c
34 TEST_SRC += test.c
34 TEST_SRC += base64.c 35 TEST_SRC += base64.c
35 TEST_SRC += crypto.c 36 TEST_SRC += crypto.c
36 37
37 38
38 TEST_OBJ = $(TEST_SRC:%.c=../build/test/%$(OBJ_EXT)) 39 TEST_OBJ = $(TEST_SRC:%.c=../build/test/%$(OBJ_EXT))
39 40
40 TEST_TARGET = ../build/runtests$(APP_EXT) 41 TEST_TARGET = ../build/runtests$(APP_EXT)
41 42
42 all: $(TEST_TARGET) 43 all: $(TEST_TARGET)
43 44
44 $(TEST_TARGET): $(TEST_OBJ) ../build/libidav$(LIB_EXT) 45 $(TEST_TARGET): $(TEST_OBJ) ../build/lib/libidav$(LIB_EXT)
45 $(LD) -o $(TEST_TARGET) $(TEST_OBJ) \ 46 $(LD) -o $(TEST_TARGET) $(TEST_OBJ) \
46 ../build/libidav$(LIB_EXT) ../build/libucx$(LIB_EXT) \ 47 ../build/lib/libidav$(LIB_EXT) ../build/lib/libucx$(LIB_EXT) \
47 $(LDFLAGS) $(DAV_LDFLAGS) 48 $(LDFLAGS) $(DAV_LDFLAGS)
48 49
49 ../build/test/%$(OBJ_EXT): %.c 50 ../build/test/%$(OBJ_EXT): %.c
50 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ucx -I../ -c -o $@ $< 51 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ucx -I../ -c -o $@ $<
51 52

mercurial