Makefile 757 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
ROOTCFLAGS   := $(shell root-config --cflags)  
ROOTLIBS     := $(shell root-config --libs)

CXX      = g++
CXXFLAGS = -O3 -I . -w

CXXFLAGS = -O3 -I ./src -w -g $(ROOTCFLAGS) -Wno-write-strings -Wno-unused-result
LDFLAGS = ${ROOTLIBS}

#src/levit8ra.o src/util.o src/esclev.o src/lev4d.o 

obj_levit8ra = src/levit8ra.o src/util.o
obj_CubeBuilder = src/CubeBuilder.o src/progressbar.o 
obj_gen_binning = src/gen_binning.o src/util.o 

ALL = CubeBuilder GenBinning levit8ra

.PHONY: all
all: $(ALL)

levit8ra: $(obj_levit8ra)
	$(CXX) $^ -o $@ $(LDFLAGS) $(CXXFLAGS)

CubeBuilder: $(obj_CubeBuilder)
	$(CXX) $^ -o $@ $(LDFLAGS) $(CXXFLAGS)
	
GenBinning: $(obj_gen_binning)
	$(CXX) $^ -o $@	$(LDFLAGS) $(CXXFLAGS)

.PHONY: clean
clean:
	rm -f $(ALL) src/*.o