From 9b8bc868509f3ec0fffcc85634e43535dc09b421 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 15 Sep 2024 15:07:00 +0800 Subject: Clean ups. --- Makefile | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3