-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 800 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 800 Bytes
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
## MAKEFILE FOR grid_power.cpp. This compiles the grid_power.cpp file into the ./power exececutable.
## Check flags from command line input?
PERIODIC_FLAG=$(Periodic)
BISPECTRUM_FLAG=$(Bispectrum)
CC = gcc
CFLAGS = -g -Wall -O3
CXXFLAGS = -DPOWER -Wall -O3 $(PERIODIC_FLAG) $(BISPECTRUM_FLAG) -DOPENMP
# disable OPENMP to run single threaded
# use -DBISPECTRUM to run in bispectrum mode, or set Bispectrum=-DBISPECTRUM on the command line
# use -DPERIODIC to run in periodic mode, or set Periodic=-DPERIODIC on the command line
CXX = g++ -fopenmp -lgomp -std=c++0x -ffast-math
AUNTIE = power
AOBJS = grid_power.o
LD = g++
LFLAGS = -L/usr/local/lib -lgsl -lgslcblas -lgomp -L/usr/lib/x86_64-linux-gnu
main: $(AUNTIE)
$(AUNTIE): $(AOBJS)
$(LD) $(AOBJS) $(LFLAGS) -o $(AUNTIE)
clean:
rm power