src/tools/Makefile

changeset 504
c094afcdfb27
parent 488
2ad9bcc2ae51
--- a/src/tools/Makefile	Sun Jul 09 15:14:26 2023 +0200
+++ b/src/tools/Makefile	Mon Jul 10 18:39:24 2023 +0200
@@ -30,7 +30,8 @@
 
 include $(BUILD_ROOT)/config.mk
 
-CFLAGS += -I../ucx/
+WSTOOL_CFLAGS = -I../ucx/
+
 LDFLAGS += -lucx -lwscfg
 
 # list of source files
@@ -45,7 +46,7 @@
 	$(CC) -o $@ $(WSTOOL_OBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(RPATH_WS_LIB_FLAG)
 
 $(BUILD_ROOT)/build/tools/%$(OBJ_EXT): %.c
-	$(CC) $(CFLAGS) -c -o $@ $<
+	$(CC) $(WSTOOL_CFLAGS) $(CFLAGS) -c -o $@ $<
 
 $(BUILD_ROOT)/build/tools:
 	mkdir -p $(BUILD_ROOT)/build/tools

mercurial