1 OBJSL
= c_code.o buf_for_proc.o rsl_malloc.o rsl_bcast.o task_for_point.o period.o swap.o cycle.o f_pack.o f_xpose.o
6 M4
= m4
-Uinclude
-Uindex
-Ulen
12 # These .F files are compiled in frame but leave behind auto-gen files here
14 feedback_domain_em_part1.F \
15 feedback_domain_em_part2.F \
16 force_domain_em_part2.F \
17 interp_domain_em_part1.F \
18 interp_domain_em_part2.F \
19 interp_domain_em_part3.F \
20 interp_domain_em_small.F
22 # These will be the files we need to clean up
23 F90_FILES
= $(foreach file
,$(F_FILES
),$(patsubst %.F
,%.f90
,$(file
)))
26 .SUFFIXES
: .F90 .F .f .o .code
30 librsl_lite.a
: $(OBJS
)
31 /bin
/rm -f librsl_lite.a
32 $(AR
) cr librsl_lite.a
$(OBJSL
)
35 $(CC
) $(CFLAGS
) -c c_code.c
38 $(CC
) $(CFLAGS
) -c period.c
41 $(CC
) $(CFLAGS
) -c swap.c
44 $(CC
) $(CFLAGS
) -c cycle.c
46 rsl_bcast.o
: rsl_bcast.c
47 $(CC
) $(CFLAGS
) -c rsl_bcast.c
49 rsl_malloc.o
: rsl_malloc.c
50 $(CC
) $(CFLAGS
) -c rsl_malloc.c
52 task_for_point.o
: task_for_point.c
53 $(CC
) $(CFLAGS
) -c task_for_point.c
55 buf_for_proc.o
: buf_for_proc.c
56 $(CC
) $(CFLAGS
) -c buf_for_proc.c
59 $(CPP
) $(CPPFLAGS
) f_pack.F90
> f_pack.f
60 $(FC
) -o
$@
$(FFLAGS
) -c f_pack.f
62 f_xpose.o
: f_xpose.F90 f_pack.o
63 $(CPP
) f_xpose.F90
> f_xpose.f
64 $(FC
) -o
$@
$(FFLAGS
) -c f_xpose.f
67 @
/bin
/rm -f
*.f
*.o
*.mod
*.obj
*.i
$(F90_FILES
)