-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (17 loc) · 593 Bytes
/
Makefile
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
IDIR = ./include
ODIR = ./objects
SRCDIR = ./source
#remove this line to cancel parallelization (it's only used in collapse.cpp)
parallel = -fopenmp
CC=gcc
CFLAGS=-I $(IDIR) -O4 -ffast-math -lstdc++ $(parallel) -lm
DEPS = auxiliar.h bias.h boltzmann_Calls.h collapse.h common.h pressure.h
OBJ = auxiliar.o bias.o boltzmann_Calls.o collapse.o pressure.o RelicFast.o
_OBJ = $(patsubst %,$(ODIR)/%,$(OBJ))
%.o: $(SRCDIR)/%.cpp $(IDIR)/%.h
$(CC) -c -o $(ODIR)/$@ $< $(CFLAGS)
relicfast: $(OBJ)
$(CC) -o $@ $(_OBJ) $(CFLAGS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~