Update version info for release v4.6.1 (#2122)
[WRF.git] / external / RSL_LITE / makefile
blobbcd3e2d05d70895018eed30e8c2e63bf2fda88cf
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
2 OBJS = $(OBJSL)
3 OPTS = $(PLUSFLAG)
4 FFLAGS = $(OPTS)
5 LIBS =
6 M4 = m4 -Uinclude -Uindex -Ulen
7 AR = ar
8 CFLAGS = $(PLUSFLAG)
9 CPPFLAGS =
10 FFLAGS =
12 # These .F files are compiled in frame but leave behind auto-gen files here
13 F_FILES = \
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
28 all : librsl_lite.a
30 librsl_lite.a: $(OBJS)
31 /bin/rm -f librsl_lite.a
32 $(AR) cr librsl_lite.a $(OBJSL)
34 c_code.o: c_code.c
35 $(CC) $(CFLAGS) -c c_code.c
37 period.o: period.c
38 $(CC) $(CFLAGS) -c period.c
40 swap.o: swap.c
41 $(CC) $(CFLAGS) -c swap.c
43 cycle.o: cycle.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
58 f_pack.o: f_pack.F90
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
66 clean :
67 @/bin/rm -f *.f *.o *.mod *.obj *.i $(F90_FILES)
69 superclean : clean
70 @/bin/rm -f *.a