-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (38 loc) · 917 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
SOURCES := ./src/main.c \
./src/confObj.c \
./src/parse_ini.c \
./src/xmem.c \
./src/xstring.c \
./src/grid.c \
./src/sources.c \
./src/sources_to_grid.c \
./src/fraction_q.c \
./src/filtering.c \
./src/phys_const.c \
./src/self_shielding.c \
./src/density_distribution.c \
./src/recombination.c \
./src/mean_free_path.c \
./src/convolution_fftw.c \
./src/utils.c\
./src/input_redshifts.c\
./src/input_grid.c \
./src/photion_background.c \
./src/redshift_tools.c \
./src/checks.c \
./src/restart.c \
./src/cifog.c
OBJECTS := $(SOURCES:.c=.o)
DOBJECTS := $(SOURCES:.c=.d)
EXECUTABLE := cifog
USE-MPI=YES
include common.mk
.PHONY: all clean clena celan celna
all: $(SOURCES) $(EXECUTABLE)
celan celna clena:clean
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm -rf $(OBJECTS) $(DOBJECTS) $(EXECUTABLE)