src/server/Makefile

changeset 91
fac51f87def0
parent 84
afd57ce39ec9
child 92
382bff43c6eb
equal deleted inserted replaced
90:279f343bbf6c 91:fac51f87def0
31 31
32 # LDFLAGS += -lpthread -ldl -lnsl -lm -lxerces-c -lldap 32 # LDFLAGS += -lpthread -ldl -lnsl -lm -lxerces-c -lldap
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)/build/bin/webservd
37 37
38 all: preparation $(MAIN_TARGET) $(PLUGINS) 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
44 include daemon/objs.mk 44 include daemon/objs.mk
45 include config/objs.mk 45 include config/objs.mk
46 include admin/objs.mk 46 include admin/objs.mk
47 47
48 include ucx/Makefile
49 include util/Makefile 48 include util/Makefile
50 include safs/Makefile 49 include safs/Makefile
51 include webdav/Makefile 50 include webdav/Makefile
52 include daemon/Makefile 51 include daemon/Makefile
53 include config/Makefile 52 include config/Makefile
55 54
56 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) $(ADMINOBJS) 55 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) $(ADMINOBJS)
57 56
58 OBJ_DIRS = daemon safs ucx util webdav config admin plugins 57 OBJ_DIRS = daemon safs ucx util webdav config admin plugins
59 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%) 58 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%)
60 MK_OBJ_DIRS += $(BUILD_ROOT)/work/bin
61 59
62 include ucx/Makefile 60 LDFLAGS += -lucx
63 61
64 preparation: $(MK_OBJ_DIRS) 62 preparation: $(MK_OBJ_DIRS)
65 63
66 $(MK_OBJ_DIRS): 64 $(MK_OBJ_DIRS):
67 mkdir -p $@ 65 mkdir -p $@
68 66
69 $(MAIN_TARGET): $(MAINOBJS) 67 $(MAIN_TARGET): $(MAINOBJS)
70 $(CXX) -o $(MAIN_TARGET) $(MAINOBJS) $(LDFLAGS) 68 $(CXX) -o $(MAIN_TARGET) $(MAINOBJS) -L$(BUILD_ROOT)/build/lib $(LDFLAGS)
71 69
72 70
73 ../../build/server/ucx/%.o: %.c 71 ../../build/server/ucx/%.o: %.c
74 $(CC) -o $@ -c $(CFLAGS) $< 72 $(CC) -o $@ -c $(CFLAGS) $<
75 73

mercurial