aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 19d3fd47d2cd0395e316894b2c7b84cdf9c6a1f4 (plain)
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
CXX=g++
CC=gcc
RM = rm
CXXFLAGS=-std=c++11 -g -O3 -Wall
GSL_FLAGS:=$(shell pkg-config --libs gsl)
NLOPT_FLAGS:=$(shell pkg-config --libs nlopt)
VPATH=src

main: main.o rtnorm.o stratified_sampling.o mt19937.o var_alea.o opti.o
	$(CXX) $^ -o $@ $(GSL_FLAGS) $(NLOPT_FLAGS)

stratified_sampling.o: stratified_sampling.hpp

main.o: stratified_sampling.o

test: test.o mt19937.o
	$(CXX) $^ -o $@

rqmc: rqmc.o mt19937.o
	$(CXX) $^ -o $@ $(GSL_FLAGS) 

option: option.o mt19937.o p_adic.o var_alea.o
	$(CXX) $^ -o $@ $(GSL_FLAGS) 

opti: opti.o
	$(CXX) $^ -o $@ NLOPT_FLAGS
	
clean:
	-$(RM) -f *.o test stratified_sampling main option