diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-09-15 15:07:00 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-09-15 15:07:00 +0800 |
| commit | 9b8bc868509f3ec0fffcc85634e43535dc09b421 (patch) | |
| tree | 0ac2ac526c2628043f96a0481ba4c748b6295c80 /Makefile | |
| parent | 177af7ea712d5fe70e1e96b453361db60dfffdab (diff) | |
| download | bare-metal-arduino-due-9b8bc868509f3ec0fffcc85634e43535dc09b421.tar.gz | |
Clean ups.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 846d463..0000000 --- a/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -CC = arm-none-eabi-gcc -CPU = cortex-m3 -TARGET = due - -SRC = main.c -OBJ = $(SRC:.c=.o) - -CFLAGS = -std=gnu99 -CFLAGS += -Os -CFLAGS += -Wall -CFLAGS += -mcpu=$(CPU) -CFLAGS += -mthumb - -LDFLAGS = -mcpu=$(CPU) -LDFLAGS += -Wl,--gc-sections - -HEX_FLAGS = -O ihex -HEX_FLAGS += -j .text -j .data - -%.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< - -elf: $(OBJ) - $(CC) $(LDFLAGS) $(OBJ) -o $(TARGET).elf - -hex: elf - arm-none-eabi-objcopy $(HEX_FLAGS) $(TARGET).elf $(TARGET).hex - -#upload: hex -# openocd -f openocd-due.cfg -c "program $(TARGET) verify reset exit" - -.PHONY: clean - -clean: - rm *.o *.elf *.hex |
