-# ATmega328P, shitty Chinese arduino clone (just an atmega328p with arduino bootloader/flasher)
+# attiny25 makefile
MCU = attiny25
F_CPU = 8000000UL
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)