src/server/Makefile

changeset 23
a2c8fc23c90e
parent 16
a9bbd82d2dce
child 25
5dee29c7c530
equal deleted inserted replaced
22:adb0bda54e6b 23:a2c8fc23c90e
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 BUILD_ROOT = ../../ 29 BUILD_ROOT = ../../
30 30
31 CFLAGS =
32
31 LDFLAGS = -L/usr/lib/mps -R/usr/lib/mps -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lposix4 -lsocket -lnsl -lgen -lm -lsendfile -lxerces-c -pg 33 LDFLAGS = -L/usr/lib/mps -R/usr/lib/mps -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lposix4 -lsocket -lnsl -lgen -lm -lsendfile -lxerces-c -pg
32 34
33 OBJ_DIR = $(BUILD_ROOT)build/ 35 OBJ_DIR = $(BUILD_ROOT)build/
34 36
35 MAIN_TARGET = $(BUILD_ROOT)work/bin/webservd 37 MAIN_TARGET = $(BUILD_ROOT)work/bin/webservd
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

mercurial