aboutsummaryrefslogtreecommitdiff
path: root/zumo/makefile
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-05-22 09:52:24 +0200
committerGitHub <noreply@github.com>2023-05-22 09:52:24 +0200
commit9540b10df8b89eee39dc2eccb26286baa7626891 (patch)
tree372cdf114a176e8d818e96468f9c05978a78fcf5 /zumo/makefile
parentac1884bec264d08dc5cc58d1cda24e20734c9205 (diff)
parent5e2cfc62ca7d724e6f9e2a4081e0cb5f948ffc71 (diff)
Merge branch 'lonkaars:master' into master
Diffstat (limited to 'zumo/makefile')
-rw-r--r--zumo/makefile74
1 files changed, 0 insertions, 74 deletions
diff --git a/zumo/makefile b/zumo/makefile
deleted file mode 100644
index 08c01d7..0000000
--- a/zumo/makefile
+++ /dev/null
@@ -1,74 +0,0 @@
-PORT = /dev/ttyUSB0
-
-C++ = avr-g++
-CC = avr-gcc
-LD = avr-gcc
-RM = rm -f
-
-MCU = atmega32u4
-TARGET = main
-SRCS += main.cpp
-
-C_CPP_FLAGS += -mmcu=$(MCU)
-C_CPP_FLAGS += -Wl,-gc-sections
-SHARED_FLAGS += -Os
-
-C_CPP_FLAGS += -mcall-prologues
-C_CPP_FLAGS += -g
-C_CPP_FLAGS += -Wl,-relax
-C_CPP_FLAGS += -MMD
-C_CPP_FLAGS += -ffunction-sections
-C_CPP_FLAGS += -fdata-sections
-
-LFLAGS += -flto
-LFLAGS += -fuse-linker-plugin
-LFLAGS += -lc -lm
-# LFLAGS += -L/usr/avr/lib/avr5/ -L/usr/lib/gcc/avr/12.2.0/avr5 -lgcc -lm -lc -latmega32u4
-# LFLAGS += -flto -fuse-linker-plugin -mmcu=atmega32u4 -Wl,--gc-sections -Os -lc -lm
-
-
-CFLAGS += -fno-fat-lto-objects
-# CFLAGS += -std=gnu11
-
-CPPFLAGS += -fpermissive
-CPPFLAGS += -fno-exceptions
-CPPFLAGS += -fno-threadsafe-statics
-CPPFLAGS += -fno-devirtualize
-# CPPFLAGS += -std=gnu++11
-
-
-LFLAGS += $(SHARED_FLAGS)
-CFLAGS += $(C_CPP_FLAGS) $(SHARED_FLAGS)
-CPPFLAGS += $(C_CPP_FLAGS) $(SHARED_FLAGS)
-
-include zumo.mk
-
-OBJS := $(patsubst %.c,%.o, $(SRCS))
-OBJS := $(patsubst %.cpp,%.o, $(OBJS))
-
-MAKEFLAGS += -j
-
-.PHONY: all clean flash
-
-all: $(TARGET).hex
-
-%.o: %.cpp
- $(C++) $(CPPFLAGS) -o $@ -c $<
-
-%.o: %.c
- $(CC) $(CFLAGS) -o $@ -c $<
-
-$(TARGET): $(OBJS)
- $(LD) $(LFLAGS) -o $@ $^
-
-$(TARGET).hex: $(TARGET)
- avr-objcopy -R .eeprom -O ihex $< $@
-
-flash: $(TARGET).hex
- avrdude -p $(MCU) -c avr109 -P $(PORT) -U flash:w:$(TARGET).hex
-
-clean:
- $(RM) $(TARGET) $(TARGET).hex $(OBJS)
-
-compile_commands.json: makefile
- compiledb make -Bn