summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/include.mk b/include.mk
index 92d6a0d..cfbc3e3 100644
--- a/include.mk
+++ b/include.mk
@@ -163,13 +163,13 @@ ifneq ($(MAKECMDGOALS),clean)
endif
lib-%.o: $(LIB_DIR)/%.c
- $(CC) $(CFLAGS) -o $@ -c $<
+ $(CC) $(CFLAGS) -c $< -o $@
%.o: %.c
- $(CC) $(CFLAGS) -o $@ -c $<
+ $(CC) $(CFLAGS) -c $< -o $@
$(ELFFILE): $(OBJ) $(OBJ_LIB)
- $(CC) $(OBJ) $(OBJ_LIB) -o $@ $(LDFLAGS)
+ $(CC) $(LDFLAGS) $(OBJ) $(OBJ_LIB) -o $@
$(HEXFILE): $(ELFFILE)
$(OBJCOPY) -O ihex -R .eeprom -R .fuse -R .lock -R .signature $< $@