2 #DBG = -fvar-tracking -ggdb3 -O0
3 #DBG = -ffpe-trap=‘denormal’,‘invalid’,‘overflow’,‘precision’,‘underflow’,‘zero’ -fvar-tracking -ggdb3 -O0
5 HOPTS
= -I.
-Iawaprogs
/chap02
/ -Iawaprogs
/chap05
/
6 CFLAGS_LOCAL
= $(CFLAGS
) $(DBG
) $(HOPTS
)
7 FFLAGS_LOCAL
= $(FFLAGS
) $(DBG
)
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
12 FOBJS
= dwta_partition.o print_filter.o test_filter.o
19 @echo make target should be
"libWavelet.a" or
"lib_wavelet.a"
21 lib_wavelet.a
: $(FOBJS
)
25 libWavelet.a
: $(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
$<
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
$<
93 @
$(RM
) *.f
*.o
*.mod
*.obj
*.i