# Include the macros from the macros.inc file in the root directory. This is # just like having the contents of that file pasted directly into this file. include ../macros.inc # Define the objects that need to be checked to ensure that our executable # is up to date. OBJS = model1.o output.o # Define a suffix rule to let make know how to build an object file from # a .hh file, thus eliminating the need for many of the rules we would # have otherwise in normal situations. .hh.o: $(CC) $(CCFLAGS) -c $@ # Define the all rule. We only list dependencies and allow Make to # figure out from its suffix rules and internal suffix rules how to # build our objects from what it knows. all: ${OBJS} # Define the dependency for model1.o model1.o: model1.hh # This is here for demonstration purposes only, it doesn't actually do anything. output.o: echo Compiling model.