summaryrefslogtreecommitdiffstats
path: root/batchk/Makefile
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-01 14:27:50 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-01 14:27:50 +0800
commit134bc428438b673e62cd2385ca20e6c0a0423092 (patch)
tree9f38aff4ee787d465894ec605b9df0e756fa7d42 /batchk/Makefile
parent14d4c6d56c0f999bbd7d8a2331e463192155dc7e (diff)
downloadsmart-home-134bc428438b673e62cd2385ca20e6c0a0423092.tar.gz
Delete bat check code.
Diffstat (limited to 'batchk/Makefile')
-rw-r--r--batchk/Makefile43
1 files changed, 0 insertions, 43 deletions
diff --git a/batchk/Makefile b/batchk/Makefile
deleted file mode 100644
index a735c42..0000000
--- a/batchk/Makefile
+++ /dev/null
@@ -1,43 +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