aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile6
1 files changed, 3 insertions, 3 deletions
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