-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample_makefile
103 lines (80 loc) · 3.16 KB
/
sample_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# *********************************************************
#
# PLUTO 4.4 Makefile
#
# *********************************************************
pluto: # Default target
ARCH = Linux.mpicc.defs
PLUTO_DIR = /home/alankar/CCinCC85/PLUTO
SRC = $(PLUTO_DIR)/Src
INCLUDE_DIRS = -I. -I$(SRC)
VPATH = ./:$(SRC)/New:$(SRC):$(SRC)/Time_Stepping:$(SRC)/States
include $(PLUTO_DIR)/Config/$(ARCH)
# ---------------------------------------------------------
# Set headers and object files
# ---------------------------------------------------------
HEADERS = pluto.h prototypes.h structs.h definitions.h macros.h mod_defs.h plm_coeffs.h
OBJ = adv_flux.o arrays.o array_reconstruct.o boundary.o check_states.o \
cmd_line_opt.o debug_tools.o entropy_switch.o \
flag_shock.o flatten.o fluid_interface_boundary.o get_nghost.o \
init.o int_bound_reset.o input_data.o \
mappers3D.o mean_mol_weight.o \
parse_file.o plm_coeffs.o rbox.o reconstruct.o \
set_indexes.o set_geometry.o set_output.o \
tools.o var_names.o
OBJ += bin_io.o colortable.o initialize.o jet_domain.o \
main.o output_log.o restart.o ring_average.o runtime_setup.o \
set_image.o show_config.o \
set_grid.o startup.o split_source.o \
userdef_output.o write_data.o write_tab.o \
write_img.o write_vtk.o write_vtk_proc.o
include $(SRC)/Math_Tools/makefile
# ---------------------------------------------------------
# Define macros by adding -D<name> where <name> has been
# set to TRUE in the system configuration file (.defs)
# ---------------------------------------------------------
ifeq ($(strip $(PARALLEL)), TRUE)
CFLAGS += -I$(SRC)/Parallel -DPARALLEL
include $(SRC)/Parallel/makefile
ifeq ($(strip $(USE_ASYNC_IO)), TRUE)
CFLAGS += -DUSE_ASYNC_IO
endif
endif
ifeq ($(strip $(USE_HDF5)), TRUE)
CFLAGS += -DUSE_HDF5
OBJ += hdf5_io.o
endif
ifeq ($($strip $(USE_PNG)), TRUE)
CFLAGS += -DUSE_PNG
endif
-include local_make
# ---------------------------------------------------------
# Additional_header_files_here ! dont change this line
# ---------------------------------------------------------
# ---------------------------------------------------------
# Additional_object_files_here ! dont change this line
# ---------------------------------------------------------
OBJ += plm_states.o
OBJ += rk_step.o
OBJ += update_stage.o
include $(SRC)/HD/makefile
include $(SRC)/Cooling/makefile
include $(SRC)/Cooling/Tabulated/makefile
include $(SRC)/EOS/Ideal/makefile
# ---------------------------------------------------------
# PLUTO target rule
# ---------------------------------------------------------
pluto: $(OBJ)
$(CC) $(OBJ) $(LDFLAGS) -o $@
# ---------------------------------------------------------
# Suffix rule
# ---------------------------------------------------------
.c.o:
$(CC) $(CFLAGS) $(INCLUDE_DIRS) $<
clean:
@rm -f *.o
@echo make clean: done
# ---------------------------------------------------------
# Dependencies for object files
# ---------------------------------------------------------
$(OBJ): $(HEADERS)