CXXFLAGS += -I$(CLHEP_INCLUDE) OBJS = swim.o main.o DEPS = $(patsubst %.o,%.d,$(OBJS)) all: swim swim: $(OBJS) g++ main.o swim.o \ -L $(CLHEP_LIB) -lCLHEP \ -o swim env: @echo CLHEP_INCLUDE = $(CLHEP_INCLUDE) @echo CLHEP_LIB = $(CLHEP_LIB) %.d: %.cc g++ -MM -I$(CLHEP_INCLUDE) $< > $@ include $(DEPS)