src/server/Makefile

changeset 16
a9bbd82d2dce
parent 14
b8bf95b39952
child 23
a2c8fc23c90e
equal deleted inserted replaced
15:cff9c4101dd7 16:a9bbd82d2dce
39 include ucx/objs.mk 39 include ucx/objs.mk
40 include util/objs.mk 40 include util/objs.mk
41 include safs/objs.mk 41 include safs/objs.mk
42 include webdav/objs.mk 42 include webdav/objs.mk
43 include daemon/objs.mk 43 include daemon/objs.mk
44 include config/objs.mk
44 45
45 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) 46 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS)
46 47
47 OBJ_DIRS = daemon safs ucx util webdav 48 OBJ_DIRS = daemon safs ucx util webdav config
48 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%) 49 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%)
50 MK_OBJ_DIRS += $(BUILD_ROOT)work/bin
49 51
50 preparation: $(MK_OBJ_DIRS) 52 preparation: $(MK_OBJ_DIRS)
51 mkdir -p $(BUILD_ROOT)work/bin
52 53
53 $(MK_OBJ_DIRS): 54 $(MK_OBJ_DIRS):
54 mkdir -p $@ 55 mkdir -p $@
55 56
56 $(MAIN_TARGET): $(DAEMONOBJS) $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) 57 $(MAIN_TARGET): $(MAINOBJS)
57 CC -o $(MAIN_TARGET) $(LDFLAGS) $(MAINOBJS) 58 CC -o $(MAIN_TARGET) $(LDFLAGS) $(MAINOBJS)
58 59
59 $(DAEMONOBJS): $(UCXOBJS) 60 $(DAEMONOBJS): $(DAEMONSOURCE)
60 cd daemon; $(MAKE) all 61 cd daemon; $(MAKE) all
61 $(UCXOBJS): 62 $(UCXOBJS): $(UCXSOURCE)
62 cd ucx; $(MAKE) all 63 cd ucx; $(MAKE) all
63 $(UTILOBJS): 64 $(UTILOBJS): $(UTILSOURCE)
64 cd util; $(MAKE) all 65 cd util; $(MAKE) all
65 $(SAFOBJS): 66 $(SAFOBJS): $(SAFSOURCE)
66 cd safs; $(MAKE) all 67 cd safs; $(MAKE) all
67 $(DAVOBJS): 68 $(CONFOBJS): $(CONFSOURCE)
69 cd config; $(MAKE) all
70 $(DAVOBJS): $(DAVSOURCE)
68 cd webdav; $(MAKE) all 71 cd webdav; $(MAKE) all
69 72

mercurial