libidav/Makefile

changeset 2
fbdfaacc4182
parent 1
b5bb7b3cd597
child 18
af411868ab9b
equal deleted inserted replaced
1:b5bb7b3cd597 2:fbdfaacc4182
39 SRC += davqlparser.c 39 SRC += davqlparser.c
40 SRC += davqlexec.c 40 SRC += davqlexec.c
41 SRC += crypto.c 41 SRC += crypto.c
42 SRC += xml.c 42 SRC += xml.c
43 SRC += versioning.c 43 SRC += versioning.c
44 SRC += config.c
44 45
45 OBJ = $(SRC:%.c=../build/libidav/%$(OBJ_EXT)) 46 OBJ = $(SRC:%.c=../build/libidav/%$(OBJ_EXT))
46 47
47 all: ../build/ucx ../build/lib/libidav$(LIB_EXT) 48 all: ../build/ucx ../build/lib/libidav$(LIB_EXT)
48 49
50 $(AR) $(ARFLAGS) $(AOFLAGS)$@ $(OBJ) 51 $(AR) $(ARFLAGS) $(AOFLAGS)$@ $(OBJ)
51 52
52 ../build/libidav/%$(OBJ_EXT): %.c 53 ../build/libidav/%$(OBJ_EXT): %.c
53 $(CC) -I../ucx $(CFLAGS) $(DAV_CFLAGS) -c -o $@ $< 54 $(CC) -I../ucx $(CFLAGS) $(DAV_CFLAGS) -c -o $@ $<
54 55
56 ../build/ucx:
57 test -d '$@'
58
55 cppcheck: $(SRC) 59 cppcheck: $(SRC)
56 $(CPPCHECK) $(CPPCHECK_CONFIG) -I../ucx $(CPPCHECK_FLAGS) $+ 2>> ../$(CPPCHECK_LOG) 60 $(CPPCHECK) $(CPPCHECK_CONFIG) -I../ucx $(CPPCHECK_FLAGS) $+ 2>> ../$(CPPCHECK_LOG)
57 61

mercurial