From 0d7bd92672acb449761def9e234934c4a9a05129 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 25 Feb 2023 16:02:35 +0100 Subject: update/fix build config for windows --- src/makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/makefile') diff --git a/src/makefile b/src/makefile index 83c7df5..1f1dc65 100644 --- a/src/makefile +++ b/src/makefile @@ -5,6 +5,8 @@ TARGET = main # platform is ds (desktop) or stm (stm32) PLATFORM = ds +HOST=$(strip $(shell uname -o)) + ifeq ($(PLATFORM),stm) STM = true include stm32.mk @@ -14,8 +16,6 @@ DESKTOP = true include ds.mk endif -HOST=$(strip $(shell uname -o)) - SHARED_FLAGS += -g SHARED_FLAGS += -Wall SHARED_FLAGS += -Wextra @@ -72,7 +72,7 @@ flash: $(TARGET).bin $(CC) -c $(CFLAGS) $< -o $@ $(TARGET): $(OBJS) - $(LD) $(LFLAGS) $^ -o $@ + $(LD) $^ $(LFLAGS) -o $@ compile_commands.json: compiledb make -Bn -- cgit v1.2.3