src/tools/Makefile

changeset 415
d938228c382e
parent 254
4784c14aa639
child 488
2ad9bcc2ae51
equal deleted inserted replaced
414:99a34860c105 415:d938228c382e
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 CFLAGS += -I../ucx/
34 LDFLAGS += -L../../build/lib -lucx -lwscfg 34 LDFLAGS += -lucx -lwscfg
35 35
36 # list of source files 36 # list of source files
37 WSTOOL_SRC = wstool.c 37 WSTOOL_SRC = wstool.c
38 WSTOOL_SRC += srvctrlsocket.c 38 WSTOOL_SRC += srvctrlsocket.c
39 39
40 WSTOOL_OBJ = $(WSTOOL_SRC:%.c=$(BUILD_ROOT)/build/tools/%$(OBJ_EXT)) 40 WSTOOL_OBJ = $(WSTOOL_SRC:%.c=$(BUILD_ROOT)/build/tools/%$(OBJ_EXT))
41 41
42 all: $(BUILD_ROOT)/build/tools $(BUILD_ROOT)/build/bin/wstool 42 all: $(BUILD_ROOT)/build/tools $(BUILD_ROOT)/build/bin/wstool
43 43
44 $(BUILD_ROOT)/build/bin/wstool: $(BUILD_ROOT)/build/tools $(WSTOOL_OBJ) 44 $(BUILD_ROOT)/build/bin/wstool: $(BUILD_ROOT)/build/tools $(WSTOOL_OBJ)
45 $(CC) -o $@ $(WSTOOL_OBJ) $(LDFLAGS) 45 $(CC) -o $@ $(WSTOOL_OBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS)
46 46
47 $(BUILD_ROOT)/build/tools/%$(OBJ_EXT): %.c 47 $(BUILD_ROOT)/build/tools/%$(OBJ_EXT): %.c
48 $(CC) $(CFLAGS) -c -o $@ $< 48 $(CC) $(CFLAGS) -c -o $@ $<
49 49
50 $(BUILD_ROOT)/build/tools: 50 $(BUILD_ROOT)/build/tools:

mercurial