src/server/Makefile

changeset 84
afd57ce39ec9
parent 62
c47e081b6c0f
child 91
fac51f87def0
equal deleted inserted replaced
83:28433f06d5ee 84:afd57ce39ec9
33 33
34 OBJ_DIR = $(BUILD_ROOT)/build/ 34 OBJ_DIR = $(BUILD_ROOT)/build/
35 35
36 MAIN_TARGET = $(BUILD_ROOT)/work/bin/webservd 36 MAIN_TARGET = $(BUILD_ROOT)/work/bin/webservd
37 37
38 all: preparation $(MAIN_TARGET) 38 all: preparation $(MAIN_TARGET) $(PLUGINS)
39 39
40 include ucx/objs.mk 40 include ucx/objs.mk
41 include util/objs.mk 41 include util/objs.mk
42 include safs/objs.mk 42 include safs/objs.mk
43 include webdav/objs.mk 43 include webdav/objs.mk
53 include config/Makefile 53 include config/Makefile
54 include admin/Makefile 54 include admin/Makefile
55 55
56 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) $(ADMINOBJS) 56 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) $(ADMINOBJS)
57 57
58 OBJ_DIRS = daemon safs ucx util webdav config admin 58 OBJ_DIRS = daemon safs ucx util webdav config admin plugins
59 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%) 59 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%)
60 MK_OBJ_DIRS += $(BUILD_ROOT)/work/bin 60 MK_OBJ_DIRS += $(BUILD_ROOT)/work/bin
61 61
62 include ucx/Makefile 62 include ucx/Makefile
63 63
72 72
73 ../../build/server/ucx/%.o: %.c 73 ../../build/server/ucx/%.o: %.c
74 $(CC) -o $@ -c $(CFLAGS) $< 74 $(CC) -o $@ -c $(CFLAGS) $<
75 75
76 76
77 $(PLUGINS): $(MAIN_TARGET)
78 cd plugins/$@/; $(MAKE) all
77 79
78 80
79 81

mercurial