src/server/Makefile

changeset 179
ef6827505bd2
parent 168
5c752979bfd6
parent 175
9823770ba4ee
child 198
2f845b5bda9d
equal deleted inserted replaced
174:8f2a834d1d68 179:ef6827505bd2
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