diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-29 17:04:38 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-29 17:04:38 +0800 |
| commit | a9ce750c420813b1e7dab5eb4e0340d107a34b20 (patch) | |
| tree | b0bab3f5247b3c3cf9cfb2e72dcc4da993c0772a /door_lock/Servo.Makefile | |
| parent | 775d4a84f36d4d5d0700e9c44dfa4114a0cc022c (diff) | |
| download | smart-home-a9ce750c420813b1e7dab5eb4e0340d107a34b20.tar.gz | |
Delete the old door_lock directory.
Diffstat (limited to 'door_lock/Servo.Makefile')
| -rw-r--r-- | door_lock/Servo.Makefile | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/door_lock/Servo.Makefile b/door_lock/Servo.Makefile deleted file mode 100644 index 018960a..0000000 --- a/door_lock/Servo.Makefile +++ /dev/null @@ -1,42 +0,0 @@ -CC = avr-gcc -MCU = atmega328p -TARGET = app - -SRC = servo.c cmd.c serial.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 |
