CC = clang++ DEBUG = -g # OPTIM = -O0 #DEBUG = OPTIM = -O3 CXX11 = -stdlib=libc++ -std=c++11 LIBS = Geom Utility t2x daqT JFTrackFit MydaqT ROOTA = -I`root-config --incdir` ROOTB = `root-config --glibs` -lMathMore ROOTS = $(ROOTA) $(ROOTB) CCT = $(CC) $(DEBUG) $(OPTIM) $(CXX11) testJFTrackFit_compiled: $(LIBS) $(CCT) -o testJFTrackFit_compiled.out testJFTrackFit_compiled.C $(ROOTS) -L. -lJFTrackFit -lt2x build: $(LIBS) $(CCT) -o main.out main.C $(ROOTS) -L. -ldaqT -lJFTrackFit -lt2x -lMydaqT clean: rm *.so rm *.o rm *.d Geom: $(CCT) -c Geom.C $(ROOTA) $(CCT) -shared -o libGeom.so Geom.o $(ROOTS) Utility: $(CCT) -c Utility.C $(ROOTA) $(CCT) -shared -o libUtility.so Utility.o $(ROOTS) t2x: $(CCT) -c t2x.C $(ROOTA) $(CCT) -shared -o libt2x.so t2x.o $(ROOTS) daqT: $(CCT) -c daqT.C $(ROOTA) $(CCT) -shared -o libdaqT.so daqT.o $(ROOTS) JFTrackFit: $(CCT) -c JFTrackFit.C $(ROOTA) $(CCT) -shared -o libJFTrackFit.so JFTrackFit.o $(ROOTS) MydaqT: $(CCT) -c MydaqT.C $(ROOTA) $(CCT) -shared -o libMydaqT.so MydaqT.o $(ROOTS) -L. -ldaqT -lJFTrackFit