X-Git-Url: https://robinkrens.nl/gitweb/?p=lra-as-sensor;a=blobdiff_plain;f=Makefile;h=9012305c31e1c7251e5c605086fa51ae886bd999;hp=8b4955bb21bf43302567e8a1570859b3480af491;hb=5fcb373521bd82b6689cf119587905850a67b8fe;hpb=f99860f16348c1622450bb81db26a14ceb795a87 diff --git a/Makefile b/Makefile index 8b4955b..9012305 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,10 @@ CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums LDFLAGS = -Wl,-Map,hbc.map TARGET_ARCH = -mmcu=$(MCU) -DEPS = haptic.h +DEPS = ODIR = obj -_OBJ = hbc.o haptic.o +_OBJ = hbc.o OBJ = $(patsubst %, $(ODIR)/%,$(_OBJ)) $(ODIR)/%.o: %.c $(DEPS)