-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (16 loc) · 963 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# FLAGS
CFLAGS= -O3 -fPIC -std=c++11
CFLAGS+= -I./include `pkg-config --cflags squids nusquids hdf5`
LDFLAGS+= `pkg-config --libs squids nusquids hdf5` -lhdf5_hl -lpthread
all: examples/exCross.o examples/partial_rate_example examples/couplings_example
examples/exCross.o : include/exCross.h examples/exCross.cpp
@ $(CXX) $(CFLAGS) -c examples/exCross.cpp -o $@
examples/partial_rate_example : examples/partial_rate_example.cpp examples/exCross.o include/nusquids_decay.h
@echo Compiling partial_rate_example
@ $(CXX) $(CFLAGS) examples/partial_rate_example.cpp examples/exCross.o -o $@ $(LDFLAGS)
examples/couplings_example : examples/couplings_example.cpp examples/exCross.o include/nusquids_decay.h
@echo Compiling couplings_example
@ $(CXX) $(CFLAGS) examples/couplings_example.cpp examples/exCross.o -o $@ $(LDFLAGS)
.PHONY: clean
clean:
rm -rf ./examples/partial_rate_example ./examples/couplings_example ./examples/test ./examples/exCross.o