diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-03 17:47:16 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-03 17:47:16 +0800 |
| commit | 50ffb4ead7293067144496894822436ba098656a (patch) | |
| tree | acbd253eba575022b12d4a419ab2acaa2709a3c4 /Makefile | |
| parent | 589025f2ec686095bdea38d3eafdddd870a10bda (diff) | |
| download | avr-nrf24l01-driver-50ffb4ead7293067144496894822436ba098656a.tar.gz | |
wip: rx.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 487d6ba..0000000 --- a/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -CC = avr-gcc -MCU = atmega328p -TARGET = app - -SRC = main.c uart.c nrfm.c -OBJ = $(SRC:.c=.o) - -CFLAGS = -std=gnu99 -CFLAGS += -Os -CFLAGS += -Wall -CFLAGS += -mmcu=$(MCU) -CFLAGS += -DBAUD=115200 -CFLAGS += -DF_CPU=16000000UL -CFLAGS += -ffunction-sections -fdata-sections - -LDFLAGS = -mmcu=$(MCU) -LDFLAGS += -Wl,--gc-sections - -HEX_FLAGS = -O ihex -HEX_FLAGS += -j .text -j .data - -AVRDUDE_FLAGS = -p $(MCU) -AVRDUDE_FLAGS += -c arduino -AVRDUDE_FLAGS += -P /dev/cuaU0 -AVRDUDE_FLAGS += -D -U - -%.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< - -elf: $(OBJ) - $(CC) $(LDFLAGS) $(OBJ) -o $(TARGET).elf - -hex: elf - avr-objcopy $(HEX_FLAGS) $(TARGET).elf $(TARGET).hex - -upload: hex - avrdude $(AVRDUDE_FLAGS) flash:w:$(TARGET).hex:i - -.PHONY: clean - -clean: - rm *.o *.elf *.hex - - |
