From 14af4d7e80e96491018551ead17c8f1f4644dcc5 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 18 Feb 2025 19:50:25 +0100 Subject: [PATCH] fix: compilation by removing directories from the steps --- makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index d925624..5e73275 100644 --- a/makefile +++ b/makefile @@ -45,16 +45,17 @@ web: all: linux-x86_64 win-x86_64 web _build: compile_commands.json $(DIR) $(TARGET) $(ASSETS) - @$(call wr_colour,"current profile: '$(PROF)'",93) clean: rm -rf $(DIR_BIN) $(DIR_OBJ) compile_commands.json # create the binary (linking step) -$(TARGET): $(DIR_OBJ) $(OBJ) +$(TARGET): $(OBJ) @$(call wr_colour,"CC: '$(CC)'",94) @$(call wr_colour,"CFLAGS: '$(CFLAGS)'",94) @$(call wr_colour,"LDFLAGS: '$(LDFLAGS)'",94) + @$(call wr_colour,"linking to: '$@'",92) @$(CC) -o $(TARGET) $^ $(CFLAGS) $(LDFLAGS) + @$(call wr_colour,"current profile: '$(PROF)'",93) # create .o and .d files $(DIR_OBJ)/$(ARCH)/$(PROF)/%.o: src/%.c