
# this is modeled after the example in
# https://www.gnu.org/software/make/manual/html_node/make-Deduces.html#make-Deduces

DEPS = utilities.h types.h model.h modelmain.h
CC = clang
CFLAGS = -O2

objects = modelmain.o model.o utilities.o caches.o

ttmodel : $(objects)
	$(CC) -o ttmodel $(objects)
	sudo cp ttmodel /usr/local/bin

modelmain.o : $(DEPS) 
utilities.o : $(DEPS) 
model.o : $(DEPS) 
caches.o: $(DEPS)

.PHONY : clean
clean :
	rm ttmodel $(objects)
