| 40 include util/objs.mk |
42 include util/objs.mk |
| 41 include safs/objs.mk |
43 include safs/objs.mk |
| 42 include webdav/objs.mk |
44 include webdav/objs.mk |
| 43 include daemon/objs.mk |
45 include daemon/objs.mk |
| 44 include config/objs.mk |
46 include config/objs.mk |
| |
47 include admin/objs.mk |
| 45 |
48 |
| 46 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) |
49 include ucx/Makefile |
| |
50 include util/Makefile |
| |
51 include safs/Makefile |
| |
52 include webdav/Makefile |
| |
53 include daemon/Makefile |
| |
54 include config/Makefile |
| |
55 include admin/Makefile |
| 47 |
56 |
| 48 OBJ_DIRS = daemon safs ucx util webdav config |
57 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) $(ADMINOBJS) |
| |
58 |
| |
59 OBJ_DIRS = daemon safs ucx util webdav config admin |
| 49 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%) |
60 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%) |
| 50 MK_OBJ_DIRS += $(BUILD_ROOT)work/bin |
61 MK_OBJ_DIRS += $(BUILD_ROOT)work/bin |
| |
62 |
| |
63 include ucx/Makefile |
| 51 |
64 |
| 52 preparation: $(MK_OBJ_DIRS) |
65 preparation: $(MK_OBJ_DIRS) |
| 53 |
66 |
| 54 $(MK_OBJ_DIRS): |
67 $(MK_OBJ_DIRS): |
| 55 mkdir -p $@ |
68 mkdir -p $@ |
| 56 |
69 |
| 57 $(MAIN_TARGET): $(MAINOBJS) |
70 $(MAIN_TARGET): $(MAINOBJS) |
| 58 CC -o $(MAIN_TARGET) $(LDFLAGS) $(MAINOBJS) |
71 CC -o $(MAIN_TARGET) $(LDFLAGS) $(MAINOBJS) |
| 59 |
72 |
| 60 $(DAEMONOBJS): $(DAEMONSOURCE) |
|
| 61 cd daemon; $(MAKE) all |
|
| 62 $(UCXOBJS): $(UCXSOURCE) |
|
| 63 cd ucx; $(MAKE) all |
|
| 64 $(UTILOBJS): $(UTILSOURCE) |
|
| 65 cd util; $(MAKE) all |
|
| 66 $(SAFOBJS): $(SAFSOURCE) |
|
| 67 cd safs; $(MAKE) all |
|
| 68 $(CONFOBJS): $(CONFSOURCE) |
|
| 69 cd config; $(MAKE) all |
|
| 70 $(DAVOBJS): $(DAVSOURCE) |
|
| 71 cd webdav; $(MAKE) all |
|
| 72 |
73 |
| |
74 ../../build/server/ucx/%.o: %.c |
| |
75 cc -o $@ -c $(CFLAGS) $< |
| |
76 |
| |
77 |
| |
78 |
| |
79 |
| |
80 |