BINARIES = gsl_multifit_example chisqMin_test gsl_error_test GME_OBJ = gsl_multifit_example.o GET_OBJ = gsl_error_test.o CT_OBJS = chisqMin_test.o chisqMin.o OBJS = $(GME_OBJ) $(CT_OBJS) DEPS = $(patsubst %.o,%.d,$(OBJS)) CPPFLAGS = -I$(CLHEP_INCLUDE) -I/home/marki/Desktop/gsl-1.10/include LDFLAGS = -L$(CLHEP_LIB) -lCLHEP -L/home/marki/Desktop/gsl-1.10/lib -lgsl -lgslcblas CXXFLAGS = -g -Wall all: $(BINARIES) gsl_multifit_example: $(GME_OBJ) $(CC) $(GME_OBJ) $(LDFLAGS) -o $@ chisqMin_test: $(CT_OBJS) $(CXX) $(CT_OBJS) $(LDFLAGS) -o $@ gsl_error_test: $(GET_OBJ) $(CC) $(GET_OBJ) $(LDFLAGS) -o $@ %.d: %.cc g++ -MM $(CPPFLAGS) $< > $@ %.d: %.c gcc -MM $(CPPFLAGS) $< > $@ include $(DEPS)