fix: remove unused cli arg warning and place -std and -x flags correctly

This commit is contained in:
2025-03-25 15:07:35 +01:00
parent 2be3132cec
commit 7188b8f75b

View File

@@ -76,7 +76,7 @@ $(TARGET): $(OBJ)
$(DIR_OBJ)/$(ARCH)/$(PROF)/%.o: src/%.c $(DIR_OBJ)/$(ARCH)/$(PROF)/%.o: src/%.c
@$(call wr_colour,"compiling $(notdir $@) from $(notdir $<)",92) @$(call wr_colour,"compiling $(notdir $@) from $(notdir $<)",92)
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
@$(CC) -o $@ -MD -MP -c $< $(CFLAGS) -std=$(STD) -x $(LANG) -Wno-unused-command-line-argument @$(CC) -o $@ -MD -MP -c -std=$(STD) -x $(LANG) $< $(CFLAGS)
# copy assets # copy assets
$(DIR_BUILD)/%: assets/% $(DIR_BUILD)/%: assets/%