summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-11-03 12:36:54 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-11-03 12:36:54 +0800
commit92807aed3d3dc17fdf94d35d8b26c1d894aab9f2 (patch)
treea2877f6983cebd51a74fa03aa08779af7833e4e0 /Makefile
parentd41e70ce3463f6b239da415c5d69773fce55f9e9 (diff)
downloadsmart-home-92807aed3d3dc17fdf94d35d8b26c1d894aab9f2.tar.gz
Basic servo control.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 0 insertions, 41 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 27092b1..0000000
--- a/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-CC = avr-gcc
-MCU = atmega328p
-TARGET = blink
-
-SRC = main.c
-OBJ = $(SRC:.c=.o)
-
-CFLAGS = -std=gnu99
-CFLAGS += -Os
-CFLAGS+= -Wall
-CFLAGS+= -mmcu=$(MCU)
-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