-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·42 lines (29 loc) · 1.46 KB
/
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
# Makefile for KGEN-generated kernel
FC :=
#FC_0 := /ncar/opt/pgi/16.5/linux86-64/16.5/bin/pgf90
FC_0 := pgf90
FC_FLAGS :=
FC_FLAGS_SET_0 := -O3 -byteswapio -Mfree -r8 -m64 -Minfo=accel -acc -ta=tesla -Mnofma -Mvect=noaltcode
ALL_OBJS := mpas_atm_time_integration.o mpas_atm_dimensions.o mpas_kind_types.o mpas_atm_iau.o mpas_constants.o kernel_driver.o kgen_utils.o tprof_mod.o
run: build
./kernel.exe
build: ${ALL_OBJS}
${FC_0} ${FC_FLAGS_SET_0} -o kernel.exe $^
mpas_atm_time_integration.o: mpas_atm_time_integration.F mpas_atm_dimensions.o mpas_kind_types.o mpas_atm_iau.o mpas_constants.o kgen_utils.o tprof_mod.o
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
mpas_atm_dimensions.o: mpas_atm_dimensions.F kgen_utils.o tprof_mod.o
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
mpas_kind_types.o: mpas_kind_types.F kgen_utils.o tprof_mod.o
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
mpas_atm_iau.o: mpas_atm_iau.F kgen_utils.o tprof_mod.o mpas_constants.o
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
mpas_constants.o: mpas_constants.F kgen_utils.o tprof_mod.o mpas_kind_types.o
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
kernel_driver.o: kernel_driver.f90 mpas_atm_time_integration.o mpas_atm_dimensions.o mpas_kind_types.o mpas_atm_iau.o mpas_constants.o kgen_utils.o tprof_mod.o
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
kgen_utils.o: kgen_utils.f90
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
tprof_mod.o: tprof_mod.f90
${FC_0} ${FC_FLAGS_SET_0} -c -o $@ $<
clean:
rm -f kernel.exe *.mod ${ALL_OBJS}