diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-05-01 10:24:46 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-05-01 10:24:46 +0800 |
| commit | d11b0f733b293c768f1bca6bc54ae88997d691a2 (patch) | |
| tree | db4f8af1ced15f9a8b7bc61b3fad8b25e1a79c43 /sleep/Makefile | |
| parent | 3e0215f1bcb7018dbbcd1cff9b2dce606cb0328d (diff) | |
| download | smart-home-d11b0f733b293c768f1bca6bc54ae88997d691a2.tar.gz | |
Delete temp, sleep mode code.
Diffstat (limited to 'sleep/Makefile')
| -rw-r--r-- | sleep/Makefile | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/sleep/Makefile b/sleep/Makefile deleted file mode 100644 index c818369..0000000 --- a/sleep/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -CC = avr-gcc -MCU = atmega328p -PORT = /dev/cuaU0 -TARGET = sleep - -SRC = main.c uart.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 $(PORT) -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 - |
