dav/Makefile

changeset 363
e9ed8e130ccf
parent 361
b6f2462ee055
child 364
3769ba002fd1
equal deleted inserted replaced
362:9a75b6df3307 363:e9ed8e130ccf
45 SYNC_SRC += error.c 45 SYNC_SRC += error.c
46 SYNC_SRC += assistant.c 46 SYNC_SRC += assistant.c
47 SYNC_SRC += libxattr.c 47 SYNC_SRC += libxattr.c
48 SYNC_SRC += tags.c 48 SYNC_SRC += tags.c
49 49
50
51 DAV_OBJ = $(DAV_SRC:%.c=../build/tool/%$(OBJ_EXT)) 50 DAV_OBJ = $(DAV_SRC:%.c=../build/tool/%$(OBJ_EXT))
52 SYNC_OBJ = $(SYNC_SRC:%.c=../build/tool/%$(OBJ_EXT)) 51 SYNC_OBJ = $(SYNC_SRC:%.c=../build/tool/%$(OBJ_EXT))
52
53 53
54 all: ../build/dav ../build/dav-sync 54 all: ../build/dav ../build/dav-sync
55 55
56 ../build/dav: $(DAV_OBJ) ../build/libidav$(LIB_EXT) 56 ../build/dav: $(DAV_OBJ) ../build/libidav$(LIB_EXT)
57 $(LD) -o ../build/dav$(APP_EXT) $(DAV_OBJ) \ 57 $(LD) -o ../build/dav$(APP_EXT) $(DAV_OBJ) \
64 $(LDFLAGS) $(DAV_LDFLAGS) 64 $(LDFLAGS) $(DAV_LDFLAGS)
65 65
66 ../build/tool/%$(OBJ_EXT): %.c 66 ../build/tool/%$(OBJ_EXT): %.c
67 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ -I../ucx -o $@ $< 67 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ -I../ucx -o $@ $<
68 68
69
69 cppcheck: $(DAV_SRC) $(SYNC_SRC) 70 cppcheck: $(DAV_SRC) $(SYNC_SRC)
70 $(CPPCHECK) $(CPPCHECK_CONFIG) $(CPPCHECK_FLAGS) -I../ucx -I../ $+ 2>> ../$(CPPCHECK_LOG) 71 $(CPPCHECK) $(CPPCHECK_CONFIG) $(CPPCHECK_FLAGS) -I../ucx -I../ $+ 2>> ../$(CPPCHECK_LOG)
71 72

mercurial