src/server/Makefile

branch
srvctrl
changeset 175
9823770ba4ee
parent 92
382bff43c6eb
child 179
ef6827505bd2
equal deleted inserted replaced
173:63b8d52db390 175:9823770ba4ee
31 31
32 OBJ_DIR = $(BUILD_ROOT)/build/ 32 OBJ_DIR = $(BUILD_ROOT)/build/
33 33
34 MAIN_TARGET = $(BUILD_ROOT)/build/bin/webservd 34 MAIN_TARGET = $(BUILD_ROOT)/build/bin/webservd
35 35
36 all: preparation $(MAIN_TARGET) $(PLUGINS) 36 LIB_WSCFG = $(BUILD_ROOT)/build/lib/libwscfg$(LIB_EXT)
37
38 all: preparation $(MAIN_TARGET) $(LIB_WSCFG) $(PLUGINS)
37 39
38 include util/objs.mk 40 include util/objs.mk
39 include safs/objs.mk 41 include safs/objs.mk
40 include webdav/objs.mk 42 include webdav/objs.mk
41 include daemon/objs.mk 43 include daemon/objs.mk
63 mkdir -p $@ 65 mkdir -p $@
64 66
65 $(MAIN_TARGET): $(MAINOBJS) 67 $(MAIN_TARGET): $(MAINOBJS)
66 $(CXX) -o $(MAIN_TARGET) $(MAINOBJS) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) 68 $(CXX) -o $(MAIN_TARGET) $(MAINOBJS) -L$(BUILD_ROOT)/build/lib $(LDFLAGS)
67 69
70 $(LIB_WSCFG): $(CONFOBJS)
71 $(CC) $(SHLIB_LDFLAGS) -o $@ $(CONFOBJS)
72
68 73
69 ../../build/server/ucx/%.o: %.c 74 ../../build/server/ucx/%.o: %.c
70 $(CC) -o $@ -c $(CFLAGS) $< 75 $(CC) -o $@ -c $(CFLAGS) $<
71 76
72 77

mercurial