updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / external / wavelet / makefile
blob77490dbe5b58afc17d7a26753bf12e4fbd4d24b9
1 DBG =
2 #DBG = -fvar-tracking -ggdb3 -O0
3 #DBG = -ffpe-trap=‘denormal’,‘invalid’,‘overflow’,‘precision’,‘underflow’,‘zero’ -fvar-tracking -ggdb3 -O0
4 #DBG = -g
5 HOPTS = -I. -Iawaprogs/chap02/ -Iawaprogs/chap05/
6 CFLAGS_LOCAL = $(CFLAGS) $(DBG) $(HOPTS)
7 FFLAGS_LOCAL = $(FFLAGS) $(DBG)
8 # C objects:
9 COBJS = cd.o dwtai.o dwtai_w.o dwtai2.o dwtai2_w.o DWTAPartition.o idwtai.o idwtai_w.o idwtai2.o idwtai2_w.o \
10 l2norm.o PrintFilter.o qf.o qf_w.o qftest.o qftest_w.o TestFilter.o xp.o
11 # ForTran objects:
12 FOBJS = dwta_partition.o print_filter.o test_filter.o
13 RM = rm -f
15 .PHONY: phony
16 .SUFFIXES: .c .F90 .o
18 phony:
19 @echo make target should be "libWavelet.a" or "lib_wavelet.a"
21 lib_wavelet.a: $(FOBJS)
22 $(RM) $@
23 $(AR) cr $@ $(FOBJS)
25 libWavelet.a: $(COBJS)
26 $(RM) $@
27 $(AR) cr $@ $(COBJS)
29 cd.o: awaprogs/chap05/cd.c awaprogs/chap02/common.h awaprogs/chap02/real.h awaprogs/chap05/cd.h awaprogs/chap05/qf.h
30 $(CC) $(CFLAGS_LOCAL) -c $<
32 dwtai.o: dwtai.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
33 $(CC) $(CFLAGS_LOCAL) -c $<
35 dwtai_w.o: dwtai_w.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
36 $(CC) $(CFLAGS_LOCAL) -c $<
38 dwtai2.o: dwtai2.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
39 $(CC) $(CFLAGS_LOCAL) -c $<
41 dwtai2_w.o: dwtai2_w.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
42 $(CC) $(CFLAGS_LOCAL) -c $<
44 DWTAPartition.o: DWTAPartition.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
45 $(CC) $(CFLAGS_LOCAL) -c $<
47 dwta_partition.o: dwta_partition.F90
48 $(FC) $(FFLAGS_LOCAL) -c dwta_partition.F90
50 idwtai.o: idwtai.c awaprogs/chap02/common.h awaprogs/chap02/real.h awaprogs/chap05/qf.h
51 $(CC) $(CFLAGS_LOCAL) -c $<
53 idwtai_w.o: idwtai_w.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
54 $(CC) $(CFLAGS_LOCAL) -c $<
56 idwtai2.o: idwtai2.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
57 $(CC) $(CFLAGS_LOCAL) -c $<
59 idwtai2_w.o: idwtai2_w.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
60 $(CC) $(CFLAGS_LOCAL) -c $<
62 l2norm.o: l2norm.c awaprogs/chap02/real.h
63 $(CC) $(CFLAGS_LOCAL) -c $<
65 PrintFilter.o: PrintFilter.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
66 $(CC) $(CFLAGS_LOCAL) -c $<
68 print_filter.o: print_filter.F90
69 $(FC) $(FFLAGS_LOCAL) -c print_filter.F90
71 qf.o: awaprogs/chap05/qf.c awaprogs/chap02/common.h awaprogs/chap02/real.h awaprogs/chap05/oqfs.h awaprogs/chap05/qf.h
72 $(CC) $(CFLAGS_LOCAL) -c $<
74 qf_w.o: qf_w.c awaprogs/chap02/real.h awaprogs/chap05/qf.h
75 $(CC) $(CFLAGS_LOCAL) -c $<
77 qftest.o: qftest.c
78 $(CC) $(CFLAGS_LOCAL) -c $<
80 qftest_w.o: qftest_w.c
81 $(CC) $(CFLAGS_LOCAL) -c $<
83 TestFilter.o: TestFilter.c awaprogs/chap02/common.h awaprogs/chap02/real.h awaprogs/chap05/qf.h
84 $(CC) $(CFLAGS_LOCAL) -c $<
86 test_filter.o: test_filter.F90
87 $(FC) $(FFLAGS_LOCAL) -c test_filter.F90
89 xp.o: awaprogs/chap09/xp.c awaprogs/chap02/common.h awaprogs/chap02/real.h awaprogs/chap09/xp.h
90 $(CC) $(CFLAGS_LOCAL) -c $<
92 clean :
93 @$(RM) *.f *.o *.mod *.obj *.i
95 superclean : clean
96 @$(RM) *.a