aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile
index d7d2c3f..6813052 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -85,11 +85,11 @@ endif
$(DIR)/libtcc1.a ../libtcc1.a : $(OBJ) $(XAR)
$(AR) rcs $@ $(OBJ)
$(DIR)/%.o : %.c
- $(XCC) -c $< -o $@ $(TGT)
+ $(XCC) -c $< -o $@ $(CPPFLAGS) $(TGT) $(CFLAGS)
$(DIR)/%.o : %.S
- $(XCC) -c $< -o $@ $(TGT)
+ $(XCC) -c $< -o $@ $(CPPFLAGS) $(TGT) $(CFLAGS)
$(DIR)/%$(EXESUF) : $(TOP)/win32/tools/%.c
- $(CC) -Os -s -w -o $@ $< $(TGT)
+ $(CC) -Os -s -w -o $@ $< $(CPPFLAGS) $(TGT) $(CFLAGS) $(LDFLAGS)
$(OBJ) $(XAR) : $(DIR)/exists
$(DIR)/exists :