Makefile cleanup

This commit is contained in:
sonninnos committed 2026-10-30 06:26:17 +02:00
1 parent 6cbc44add8
commit 5ebe7d333a
1 file changed
+8 -11
+8 -11
View File
@@ -4,7 +4,10 @@ SOURCES_C :=
SOURCES_CC :=
SOURCES_CXX :=
OBJECTS :=
SILENT := 0
ifneq ($(SILENT),1)
E := 1
endif
ifeq ($(platform),)
platform = unix
@@ -461,7 +464,7 @@ info:
all: $(TARGET)
-include $(OBJECTS:.o=.d))
-include $(OBJECTS:.o=.d)
$(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
@@ -475,23 +478,17 @@ endif
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
@if [ $(SILENT) -ne 1 ]; then\
$(if $@, $(shell echo echo CC $<),);\
fi
@$(if $(E), $(shell echo echo CC $<),)
$(CC) $(CFLAGS) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
@if [ $(SILENT) -ne 1 ]; then\
$(if $@, $(shell echo echo CXX $<),);\
fi
@$(if $(E), $(shell echo echo CXX $<),)
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(OBJDIR)/%.o: %.cc
@mkdir -p $(dir $@)
@if [ $(SILENT) -ne 1 ]; then\
$(if $@, $(shell echo echo CXX $<),);\
fi
@$(if $(E), $(shell echo echo CXX $<),)
$(CXX) $(CXXFLAGS) -c -o $@ $<
clean: