hbc: added stub files
[lra-as-sensor] / Makefile
index 9abe973..f8cbf9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# ATmega328P, shitty Chinese arduino clone (just an atmega328p with arduino bootloader/flasher)
+# attiny25 makefile
 
 MCU = attiny25
 F_CPU = 8000000UL
@@ -13,16 +13,16 @@ AVRSIZE = avr-size
 AVRDUDE = avrdude
 
 CPPFLAGS = -DF_CPU=$(F_CPU) -DBAUD=$(BAUD) -I.
-CFLAGS = -O -g -Wall
+CFLAGS = -Os -g -Wall
 CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
 
 LDFLAGS = -Wl,-Map,hbc.map
 TARGET_ARCH = -mmcu=$(MCU)
 
-DEPS = 
+DEPS = haptic.h
 
 ODIR = obj
-_OBJ = hbc.o
+_OBJ = hbc.o haptic.o
 OBJ = $(patsubst %, $(ODIR)/%,$(_OBJ))
 
 $(ODIR)/%.o: %.c $(DEPS)