src/tools/Makefile

changeset 504
c094afcdfb27
parent 488
2ad9bcc2ae51
equal deleted inserted replaced
503:aeaf7db26fac 504:c094afcdfb27
28 28
29 BUILD_ROOT = ../.. 29 BUILD_ROOT = ../..
30 30
31 include $(BUILD_ROOT)/config.mk 31 include $(BUILD_ROOT)/config.mk
32 32
33 CFLAGS += -I../ucx/ 33 WSTOOL_CFLAGS = -I../ucx/
34
34 LDFLAGS += -lucx -lwscfg 35 LDFLAGS += -lucx -lwscfg
35 36
36 # list of source files 37 # list of source files
37 WSTOOL_SRC = wstool.c 38 WSTOOL_SRC = wstool.c
38 WSTOOL_SRC += srvctrlsocket.c 39 WSTOOL_SRC += srvctrlsocket.c
43 44
44 $(BUILD_ROOT)/build/bin/wstool: $(BUILD_ROOT)/build/tools $(WSTOOL_OBJ) 45 $(BUILD_ROOT)/build/bin/wstool: $(BUILD_ROOT)/build/tools $(WSTOOL_OBJ)
45 $(CC) -o $@ $(WSTOOL_OBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(RPATH_WS_LIB_FLAG) 46 $(CC) -o $@ $(WSTOOL_OBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(RPATH_WS_LIB_FLAG)
46 47
47 $(BUILD_ROOT)/build/tools/%$(OBJ_EXT): %.c 48 $(BUILD_ROOT)/build/tools/%$(OBJ_EXT): %.c
48 $(CC) $(CFLAGS) -c -o $@ $< 49 $(CC) $(WSTOOL_CFLAGS) $(CFLAGS) -c -o $@ $<
49 50
50 $(BUILD_ROOT)/build/tools: 51 $(BUILD_ROOT)/build/tools:
51 mkdir -p $(BUILD_ROOT)/build/tools 52 mkdir -p $(BUILD_ROOT)/build/tools

mercurial