aboutsummaryrefslogtreecommitdiff
path: root/zumo/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-04-26 12:33:29 +0200
committerlonkaars <loek@pipeframe.xyz>2023-04-26 12:33:29 +0200
commitfd16df0cdb88ebcb319d3a0229ae7b0b4a2d45e9 (patch)
tree9223d3da09f439b6c5c7b04288a2271e1d2b8c31 /zumo/makefile
parenta5ae433b7f12246adb709a57223a853bd2a948c1 (diff)
WIP build system (more errors gone?)
Diffstat (limited to 'zumo/makefile')
-rw-r--r--zumo/makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/zumo/makefile b/zumo/makefile
index 1a7ad36..c388a28 100644
--- a/zumo/makefile
+++ b/zumo/makefile
@@ -28,13 +28,13 @@ MAKEFLAGS += -j4
all: $(TARGET).hex
%.o: %.cpp
- $(C++) -c $(CFLAGS) $< -o $@
+ $(C++) $(CFLAGS) -o $@ -c $<
%.o: %.c
- $(CC) -c $(CFLAGS) $< -o $@
+ $(CC) $(CFLAGS) -o $@ -c $<
$(TARGET): $(OBJS)
- $(LD) $^ $(LFLAGS) -o $@
+ $(LD) $(LFLAGS) -o $@ $^
$(TARGET).hex: $(TARGET)
avr-objcopy -R .eeprom -O ihex $< $@