diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-05-25 21:07:27 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-05-25 21:07:27 +0200 |
commit | fbe109a12420033c3421733072d36a875e154f64 (patch) | |
tree | 3f0efe7cee27c2389d057f411261fd037fccbb2b /zumo/makefile | |
parent | 76df689d48df0b5056769b9c8ca968ac4a0eb261 (diff) | |
parent | 6daf8036c1342899196b2f7830ae5a18f0918d07 (diff) |
Merge branch 'master' of https://github.com/unavailabledev/avans-dui
Diffstat (limited to 'zumo/makefile')
-rw-r--r-- | zumo/makefile | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/zumo/makefile b/zumo/makefile deleted file mode 100644 index c388a28..0000000 --- a/zumo/makefile +++ /dev/null @@ -1,49 +0,0 @@ -PORT = /dev/ttyUSB0 - -C++ = avr-g++ -CC = avr-gcc -LD = avr-ld -RM = rm -f - -MCU = atmega32u4 -TARGET = main -SRCS += main.cpp - -CFLAGS += -mcall-prologues -CFLAGS += -mmcu=$(MCU) -CFLAGS += -Os -CFLAGS += -g -CFLAGS += -Wl,-gc-sections -CFLAGS += -Wl,-relax - -include zumo.mk - -OBJS := $(patsubst %.c,%.o, $(SRCS)) -OBJS := $(patsubst %.cpp,%.o, $(OBJS)) - -MAKEFLAGS += -j4 - -.PHONY: all clean flash - -all: $(TARGET).hex - -%.o: %.cpp - $(C++) $(CFLAGS) -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 |