changeset 728:18a19d052f94

Improve build system.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2022 15:18:19 +0200
parents b415b70254fa
children ef1521b179b1
files Makefile.inc
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.inc	Thu Jan 06 13:12:16 2022 +0200
+++ b/Makefile.inc	Fri Feb 25 15:18:19 2022 +0200
@@ -71,33 +71,33 @@
 $(OBJPATH)th_string.o: $(addprefix $(THLIBS), \
 	th_string.c th_printf.c th_printf1.c \
 	th_strglob.c th_string.h) $(THLIBS_DEP)
-	$(COMPILE_C_OBJ)
+	$(call COMPILE_C_OBJ,)
 
 
 $(OBJPATH)%.o: $(THLIBS)%.c $(THLIBS_DEP)
-	$(COMPILE_C_OBJ)
+	$(call COMPILE_C_OBJ,)
 
 $(OBJPATH)%.o: $(THLIBS)%.c $(THLIBS)%.h $(THLIBS_DEP)
-	$(COMPILE_C_OBJ) -I$(THLIBS)
+	$(call COMPILE_C_OBJ, -I$(THLIBS))
 
 $(OBJPATH)%.o: %.c %.h $(THLIBS_DEP)
-	$(COMPILE_C_OBJ) -I$(THLIBS)
+	$(call COMPILE_C_OBJ, -I$(THLIBS))
 
 $(OBJPATH)%.o: %.c $(THLIBS_DEP)
-	$(COMPILE_C_OBJ) -I$(THLIBS)
+	$(call COMPILE_C_OBJ, -I$(THLIBS))
 
 $(THLIBS_A): $(addprefix $(OBJPATH),$(THLIBS_OBJ))
-	$(LINK_STATIC_LIB)
+	$(call LINK_STATIC_LIB,)
 
 
 ###
 ### Generate endian check and config.h
 ###
 $(OBJPATH)endianchk.o: $(THLIBS)endianchk.c
-	$(COMPILE_C_OBJ)
+	$(call COMPILE_C_OBJ,)
 
 $(ENDIANCHK_BIN): $(OBJPATH)endianchk.o
-	$(LINK_C_BIN)
+	$(call LINK_C_BIN,)
 
 config.h: $(ENDIANCHK_BIN)
 	$(ENDIANCHK_BIN) > $@
@@ -107,9 +107,9 @@
 ### Special targets
 ###
 clean:
-	$(RM) $(TARGETS) $(NOINST_TARGETS) $(OBJPATH)*.o
+	-$(RM) $(TARGETS) $(NOINST_TARGETS) $(OBJPATH)*.o
 
 srcclean: clean
-	$(RM) *~
+	-$(RM) *~
 
 .PHONY: clean srcclean all