src/server/Makefile

changeset 385
a1f4cb076d2f
parent 287
a171da778817
child 415
d938228c382e
equal deleted inserted replaced
210:21274e5950af 385:a1f4cb076d2f
60 TESTOBJS += $(MAINOBJS) 60 TESTOBJS += $(MAINOBJS)
61 61
62 OBJ_DIRS = daemon safs ucx util webdav config admin plugins test 62 OBJ_DIRS = daemon safs ucx util webdav config admin plugins test
63 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%) 63 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%)
64 64
65 CFLAGS += -I../ 65 CFLAGS += -I../ucx/
66 LDFLAGS += -lucx 66 LDFLAGS += -lucx
67 67
68 preparation: $(MK_OBJ_DIRS) 68 preparation: $(MK_OBJ_DIRS)
69 69
70 $(MK_OBJ_DIRS): 70 $(MK_OBJ_DIRS):
74 $(CXX) -o $(MAIN_TARGET) $(MAINOBJS) $(DAEMON_STARTOBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) 74 $(CXX) -o $(MAIN_TARGET) $(MAINOBJS) $(DAEMON_STARTOBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS)
75 75
76 $(LIB_WSCFG): $(CONFOBJS) 76 $(LIB_WSCFG): $(CONFOBJS)
77 $(CC) $(SHLIB_LDFLAGS) -o $@ $(CONFOBJS) 77 $(CC) $(SHLIB_LDFLAGS) -o $@ $(CONFOBJS)
78 78
79 $(TEST_TARGET): $(TESTOBJS) 79 $(TEST_TARGET): $(TESTOBJS) $(PLUGINS)
80 $(CXX) -o $(TEST_TARGET) $(TESTOBJS) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) 80 $(CXX) -o $(TEST_TARGET) $(TESTOBJS) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(TEST_PLUGIN_LDFLAGS)
81 81
82 82
83 $(PLUGINS): $(MAIN_TARGET) FORCE 83 $(PLUGINS): $(MAIN_TARGET) FORCE
84 cd plugins/$@/; $(MAKE) all 84 cd plugins/$@/; $(MAKE) all
85 85

mercurial