annotate Meerwald/Makefile @ 0:be303a3f5ea8

import
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Sun, 12 Aug 2007 13:14:34 +0200
parents
children acb6967ee76d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 # Makefile
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3 # choose build platform
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 include ../make/make.config
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 all: tools \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 bruyn \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 koch \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 corvi \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 xia \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 xie \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 cox \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 zhu \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14 dugad \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 wang \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 frid2 \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 kim
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19 .SUFFIXES: .c .o .1 .ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 .c$(O):
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24 .1.ps:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25 $(GROFF) $< > $@
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27 # library containing general stuff
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
29 $(LIBPREFIX)wm$(LIB): dct$(O) coeff$(O) gray$(O) sort$(O) signature$(O) coord$(O) wm$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
30 $(RM) $@
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
31 ar -rc $@ dct$(O) coeff$(O) gray$(O) sort$(O) signature$(O) coord$(O) wm$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
32
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
33 libraryclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
34 $(RM) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
35
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
36 # library containing wavelet transform stuff
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
37
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
38 $(LIBPREFIX)wavelet$(LIB): wavelet$(O) dwt$(O) dwt_util$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
39 $(RM) $@
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
40 ar -rc $@ wavelet$(O) dwt$(O) dwt_util$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
41
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
42 waveletclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
43 $(RM) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
44
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
45 # some general tools to compute difference image, PSNR, ...
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
46
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
47 tools: cmp_pgm$(EXE) cmp_dct8x8$(EXE) cmp_dct$(EXE) cmp_dwt$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
48
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
49 toolstest:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
50
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
51 toolsinstall: tools
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
52 $(CP) cmp_pgm$(EXE) cmp_dct8x8$(EXE) cmp_dct$(EXE) cmp_dwt$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
53
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
54 toolsman: cmp_pgm.ps cmp_dct8x8.ps cmp_dct.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
55
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
56 toolsclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
57 $(RM) cmp_pgm$(EXE) cmp_dct$(EXE) cmp_dct8x8$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
58
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
59 cmp_pgm$(EXE): cmp_pgm$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
60 $(CC) $(LDFLAGS) -o $@ cmp_pgm$(O) $(WMLIB) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
61
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
62 cmp_dct$(EXE): cmp_dct$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
63 $(CC) $(LDFLAGS) -o $@ cmp_dct$(O) $(WMLIB) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
64
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
65 cmp_dwt$(EXE): cmp_dwt$(O) $(LIBPREFIX)wavelet$(LIB) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
66 $(CC) $(LDFLAGS) -o $@ cmp_dwt$(O) $(WAVELIB) $(WMLIB) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
67
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
68 cmp_dct8x8$(EXE): cmp_dct8x8$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
69 $(CC) $(LDFLAGS) -o $@ cmp_dct8x8$(O) $(WMLIB) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
70
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
71
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
72 # Koch's algorithm (8x8 block DCT, blind, binary)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
73
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
74 koch: gen_koch_sig$(EXE) wm_koch_e$(EXE) wm_koch_d$(EXE) cmp_koch_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
75
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
76 kochtest: koch
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
77 gen_koch_sig$(EXE) -n 150 < gen_koch_sig.c > ../sigs/koch.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
78 wm_koch_e$(EXE) -s ../sigs/koch.sig -o ../watermarked/koch_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
79 wm_koch_d$(EXE) -s ../sigs/koch.sig -o ../wms/koch.wm ../watermarked/koch_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
80 cmp_koch_sig$(EXE) -s ../sigs/koch.sig ../wms/koch.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
81
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
82 kochinstall: koch
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
83 $(CP) gen_koch_sig$(EXE) wm_koch_e$(EXE) wm_koch_d$(EXE) cmp_koch_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
84
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
85 kochclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
86 $(RM) gen_koch_sig$(EXE) wm_koch_e$(EXE) wm_koch_d$(EXE) cmp_koch_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
87
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
88 kochman:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
89
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
90 wm_koch_e$(EXE): wm_koch_e$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
91 $(CC) $(LDFLAGS) -o $@ wm_koch_e$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
92
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
93 wm_koch_d$(EXE): wm_koch_d$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
94 $(CC) $(LDFLAGS) -o $@ wm_koch_d$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
95
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
96 gen_koch_sig$(EXE): gen_koch_sig$(O) wm$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
97 $(CC) $(LDFLAGS) -o $@ gen_koch_sig$(O) wm$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
98
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
99 cmp_koch_sig$(EXE): cmp_koch_sig$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
100 $(CC) $(LDFLAGS) -o $@ cmp_koch_sig$(O) $(WMLIB) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
101
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
102 # Fridrich's 2. scheme (full-frame DCT, blind, binary)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
103
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
104 frid2: gen_frid2_sig$(EXE) wm_frid2_e$(EXE) wm_frid2_d$(EXE) cmp_frid2_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
105
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
106 frid2test: frid2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
107 gen_frid2_sig$(EXE) -n 250 < gen_frid2_sig.c > ../sigs/frid2.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
108 wm_frid2_e$(EXE) -s ../sigs/frid2.sig -o ../watermarked/frid2_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
109 wm_frid2_d$(EXE) -s ../sigs/frid2.sig -o ../wms/frid2.wm ../watermarked/frid2_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
110 cmp_frid2_sig$(EXE) -s ../sigs/frid2.sig ../wms/frid2.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
111
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
112 frid2install: frid2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
113 $(CP) gen_frid2_sig$(EXE) wm_frid2_e$(EXE) wm_frid2_d$(EXE) cmp_frid2_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
114
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
115 frid2clean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
116 $(RM) gen_frid2_sig$(EXE) wm_frid2_e$(EXE) wm_frid2_d$(EXE) cmp_frid2_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
117
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
118 frid2man:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
119
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
120 wm_frid2_e$(EXE): wm_frid2_e$(O) $(LIBPREFIX)wm$(LIB) frid2_common$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
121 $(CC) $(LDFLAGS) -o $@ wm_frid2_e$(O) frid2_common$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
122
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
123 wm_frid2_d$(EXE): wm_frid2_d$(O) $(LIBPREFIX)wm$(LIB) frid2_common$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
124 $(CC) $(LDFLAGS) -o $@ wm_frid2_d$(O) frid2_common$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
125
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
126 gen_frid2_sig$(EXE): gen_frid2_sig$(O) wm$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
127 $(CC) $(LDFLAGS) -o $@ gen_frid2_sig$(O) wm$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
128
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
129 cmp_frid2_sig$(EXE): cmp_frid2_sig$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
130 $(CC) $(LDFLAGS) -o $@ cmp_frid2_sig$(O) $(WMLIB) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
131
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
132
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
133 # Bruyndonckx's algorithm (spatial domain, block classification, blind)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
134
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
135 bruyn: gen_bruyn_sig$(EXE) wm_bruyn_e$(EXE) wm_bruyn_d$(EXE) cmp_bruyn_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
136
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
137 bruyntest: bruyn
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
138 gen_bruyn_sig$(EXE) -n 400 < gen_bruyn_sig.c > ../sigs/bruyn.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
139 wm_bruyn_e$(EXE) -s ../sigs/bruyn.sig -o ../watermarked/bruyn_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
140 wm_bruyn_d$(EXE) -s ../sigs/bruyn.sig -o ../wms/bruyn.wm ../watermarked/bruyn_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
141 cmp_bruyn_sig$(EXE) -s ../sigs/bruyn.sig ../wms/bruyn.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
142
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
143 bruyninstall: bruyn
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
144 $(CP) gen_bruyn_sig$(EXE) wm_bruyn_e$(EXE) wm_bruyn_d$(EXE) cmp_bruyn_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
145
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
146 bruynclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
147 $(RM) gen_bruyn_sig$(EXE) wm_bruyn_e$(EXE) wm_bruyn_d$(EXE) cmp_bruyn_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
148
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
149 bruynman:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
150
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
151 wm_bruyn_e$(EXE): wm_bruyn_e$(O) bruyn_common$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
152 $(CC) $(LDFLAGS) -o $@ wm_bruyn_e$(O) bruyn_common$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
153
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
154 wm_bruyn_d$(EXE): wm_bruyn_d$(O) bruyn_common$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
155 $(CC) $(LDFLAGS) -o $@ wm_bruyn_d$(O) bruyn_common$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
156
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
157 gen_bruyn_sig$(EXE): gen_bruyn_sig$(O) wm$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
158 $(CC) $(LDFLAGS) -o $@ gen_bruyn_sig$(O) wm$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
159
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
160 cmp_bruyn_sig$(EXE): cmp_bruyn_sig$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
161 $(CC) $(LDFLAGS) -o $@ cmp_bruyn_sig$(O) $(WMLIB) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
162
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
163
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
164 # Cox's algorithm (full-frame DCT, non-blind, spread-spectrum)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
165
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
166 cox: gen_cox_sig$(EXE) wm_cox_e$(EXE) wm_cox_d$(EXE) cmp_cox_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
167
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
168 coxtest: cox
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
169 gen_cox_sig$(EXE) > ../sigs/cox.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
170 wm_cox_e$(EXE) -s ../sigs/cox.sig -o ../watermarked/cox_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
171 wm_cox_d$(EXE) -s ../sigs/cox.sig -o ../wms/cox.wm -i ../images/lena.pgm ../watermarked/cox_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
172 cmp_cox_sig$(EXE) -s ../sigs/cox.sig ../wms/cox.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
173
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
174 coxinstall: cox
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
175 $(CP) gen_cox_sig$(EXE) wm_cox_e$(EXE) wm_cox_d$(EXE) cmp_cox_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
176
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
177 coxman: gen_cox_sig.ps wm_cox_e.ps wm_cox_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
178
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
179 wm_cox_e$(EXE): wm_cox_e$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
180 $(CC) $(LDFLAGS) -o $@ wm_cox_e$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
181
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
182 wm_cox_d$(EXE): wm_cox_d$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
183 $(CC) $(LDFLAGS) -o $@ wm_cox_d$(O) $(WMLIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
184
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
185 gen_cox_sig$(EXE): gen_cox_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
186 $(CC) $(LDFLAGS) -o $@ gen_cox_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
187
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
188 cmp_cox_sig$(EXE): cmp_cox_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
189 $(CC) $(LDFLAGS) -o $@ cmp_cox_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
190
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
191 coxclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
192 $(RM) gen_cox_sig$(EXE) wm_cox_e$(EXE) wm_cox_d$(EXE) cmp_cox_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
193
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
194
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
195 # Corvi's algorithm (DWT, non-blind, spread-spectrum, approximation image)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
196
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
197 corvi: gen_corvi_sig$(EXE) wm_corvi_e$(EXE) wm_corvi_d$(EXE) cmp_corvi_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
198
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
199 corvitest: corvi
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
200 gen_corvi_sig$(EXE) > ../sigs/corvi.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
201 wm_corvi_e$(EXE) -s ../sigs/corvi.sig -o ../watermarked/corvi_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
202 wm_corvi_d$(EXE) -s ../sigs/corvi.sig -o ../wms/corvi.wm -i ../images/lena.pgm ../watermarked/corvi_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
203 cmp_corvi_sig$(EXE) -s ../sigs/corvi.sig ../wms/corvi.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
204
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
205 corviinstall: corvi
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
206 $(CP) gen_corvi_sig$(EXE) wm_corvi_e$(EXE) wm_corvi_d$(EXE) cmp_corvi_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
207
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
208 corviman: gen_corvi_sig.ps wm_corvi_e.ps wm_corvi_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
209
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
210 wm_corvi_e$(EXE): wm_corvi_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
211 $(CC) $(LDFLAGS) -o $@ wm_corvi_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
212
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
213 wm_corvi_d$(EXE): wm_corvi_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
214 $(CC) $(LDFLAGS) -o $@ wm_corvi_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
215
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
216 gen_corvi_sig$(EXE): gen_corvi_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
217 $(CC) $(LDFLAGS) -o $@ gen_corvi_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
218
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
219 cmp_corvi_sig$(EXE): cmp_corvi_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
220 $(CC) $(LDFLAGS) -o $@ cmp_corvi_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
221
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
222 corviclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
223 $(RM) gen_corvi_sig$(EXE) wm_corvi_e$(EXE) wm_corvi_d$(EXE) cmp_corvi_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
224
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
225
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
226 # Xia's algorithm (DWT, non-blind, spread-spectrum, detail subbands)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
227
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
228 xia: gen_xia_sig$(EXE) wm_xia_e$(EXE) wm_xia_d$(EXE) cmp_xia_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
229
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
230 xiatest: xia
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
231 gen_xia_sig$(EXE) > ../sigs/xia.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
232 wm_xia_e$(EXE) -s ../sigs/xia.sig -o ../watermarked/xia_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
233 wm_xia_d$(EXE) -s ../sigs/xia.sig -o ../wms/xia.wm -i ../images/lena.pgm ../watermarked/xia_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
234 cmp_xia_sig$(EXE) -s ../sigs/xia.sig ../wms/xia.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
235
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
236 xiainstall: xia
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
237 $(CP) gen_xia_sig$(EXE) wm_xia_e$(EXE) wm_xia_d$(EXE) cmp_xia_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
238
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
239 xiaman: gen_xia_sig.ps wm_xia_e.ps wm_xia_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
240
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
241 wm_xia_e$(EXE): wm_xia_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
242 $(CC) $(LDFLAGS) -o $@ wm_xia_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
243
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
244 wm_xia_d$(EXE): wm_xia_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
245 $(CC) $(LDFLAGS) -o $@ wm_xia_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
246
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
247 gen_xia_sig$(EXE): gen_xia_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
248 $(CC) $(LDFLAGS) -o $@ gen_xia_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
249
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
250 cmp_xia_sig$(EXE): cmp_xia_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
251 $(CC) $(LDFLAGS) -o $@ cmp_xia_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
252
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
253 xiaclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
254 $(RM) gen_xia_sig$(EXE) wm_xia_e$(EXE) wm_xia_d$(EXE) cmp_xia_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
255
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
256 # Wang's algorithm (DWT, non-blind, spread-spectrum, detail subbands)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
257
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
258 wang: gen_wang_sig$(EXE) wm_wang_e$(EXE) wm_wang_d$(EXE) cmp_wang_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
259
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
260 wangtest: wang
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
261 gen_wang_sig$(EXE) -n 1000 > ../sigs/wang.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
262 wm_wang_e$(EXE) -s ../sigs/wang.sig -o ../watermarked/wang_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
263 wm_wang_d$(EXE) -s ../sigs/wang.sig -o ../wms/wang.wm -i ../images/lena.pgm ../watermarked/wang_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
264 cmp_wang_sig$(EXE) -s ../sigs/wang.sig ../wms/wang.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
265
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
266 wanginstall: wang
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
267 $(CP) gen_wang_sig$(EXE) wm_wang_e$(EXE) wm_wang_d$(EXE) cmp_wang_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
268
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
269 wangman: gen_wang_sig.ps wm_wang_e.ps wm_wang_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
270
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
271 wm_wang_e$(EXE): wm_wang_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB) wang_common$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
272 $(CC) $(LDFLAGS) -o $@ wm_wang_e$(O) wang_common$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
273
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
274 wm_wang_d$(EXE): wm_wang_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB) wang_common$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
275 $(CC) $(LDFLAGS) -o $@ wm_wang_d$(O) wang_common$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
276
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
277 gen_wang_sig$(EXE): gen_wang_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
278 $(CC) $(LDFLAGS) -o $@ gen_wang_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
279
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
280 cmp_wang_sig$(EXE): cmp_wang_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
281 $(CC) $(LDFLAGS) -o $@ cmp_wang_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
282
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
283 wangclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
284 $(RM) gen_wang_sig$(EXE) wm_wang_e$(EXE) wm_wang_d$(EXE) cmp_wang_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
285
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
286 # Kim's algorithm (DWT, non-blind, spread-spectrum, approx. & detail subbands)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
287
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
288 kim: gen_kim_sig$(EXE) wm_kim_e$(EXE) wm_kim_d$(EXE) cmp_kim_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
289
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
290 kimtest: kim
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
291 gen_kim_sig$(EXE) -n 1000 > ../sigs/kim.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
292 wm_kim_e$(EXE) -s ../sigs/kim.sig -o ../watermarked/kim_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
293 wm_kim_d$(EXE) -s ../sigs/kim.sig -o ../wms/kim.wm -i ../images/lena.pgm ../watermarked/kim_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
294 cmp_kim_sig$(EXE) -s ../sigs/kim.sig ../wms/kim.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
295
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
296 kiminstall: kim
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
297 $(CP) gen_kim_sig$(EXE) wm_kim_e$(EXE) wm_kim_d$(EXE) cmp_kim_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
298
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
299 kimman: gen_kim_sig.ps wm_kim_e.ps wm_kim_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
300
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
301 wm_kim_e$(EXE): wm_kim_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB) kim_common$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
302 $(CC) $(LDFLAGS) -o $@ wm_kim_e$(O) kim_common$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
303
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
304 wm_kim_d$(EXE): wm_kim_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB) kim_common$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
305 $(CC) $(LDFLAGS) -o $@ wm_kim_d$(O) kim_common$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
306
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
307 gen_kim_sig$(EXE): gen_kim_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
308 $(CC) $(LDFLAGS) -o $@ gen_kim_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
309
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
310 cmp_kim_sig$(EXE): cmp_kim_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
311 $(CC) $(LDFLAGS) -o $@ cmp_kim_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
312
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
313 kimclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
314 $(RM) gen_kim_sig$(EXE) wm_kim_e$(EXE) wm_kim_d$(EXE) cmp_kim_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
315
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
316 # Zhu's algorithm (DWT, non-blind, spread-spectrum, detail subbands)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
317
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
318 zhu: gen_zhu_sig$(EXE) wm_zhu_e$(EXE) wm_zhu_d$(EXE) cmp_zhu_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
319
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
320 zhutest: zhu
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
321 gen_zhu_sig$(EXE) > ../sigs/zhu.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
322 wm_zhu_e$(EXE) -s ../sigs/zhu.sig -o ../watermarked/zhu_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
323 wm_zhu_d$(EXE) -s ../sigs/zhu.sig -o ../wms/zhu.wm -i ../images/lena.pgm ../watermarked/zhu_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
324 cmp_zhu_sig$(EXE) -s ../sigs/zhu.sig ../wms/zhu.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
325
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
326 zhuinstall: zhu
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
327 $(CP) gen_zhu_sig$(EXE) wm_zhu_e$(EXE) wm_zhu_d$(EXE) cmp_zhu_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
328
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
329 zhuman: gen_zhu_sig.ps wm_zhu_e.ps wm_zhu_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
330
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
331 wm_zhu_e$(EXE): wm_zhu_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
332 $(CC) $(LDFLAGS) -o $@ wm_zhu_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
333
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
334 wm_zhu_d$(EXE): wm_zhu_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
335 $(CC) $(LDFLAGS) -o $@ wm_zhu_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
336
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
337 gen_zhu_sig$(EXE): gen_zhu_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
338 $(CC) $(LDFLAGS) -o $@ gen_zhu_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
339
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
340 cmp_zhu_sig$(EXE): cmp_zhu_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
341 $(CC) $(LDFLAGS) -o $@ cmp_zhu_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
342
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
343 zhuclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
344 $(RM) gen_zhu_sig$(EXE) wm_zhu_e$(EXE) wm_zhu_d$(EXE) cmp_zhu_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
345
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
346 # Xie's algorithm (DWT, blind, binary, quantization, approximation image)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
347
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
348 xie: gen_xie_sig$(EXE) wm_xie_e$(EXE) wm_xie_d$(EXE) cmp_xie_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
349
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
350 xietest: xie
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
351 gen_xie_sig$(EXE) -n 800 gen_xie_sig.c > ../sigs/xie.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
352 wm_xie_e$(EXE) -s ../sigs/xie.sig -o ../watermarked/xie_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
353 wm_xie_d$(EXE) -s ../sigs/xie.sig -o ../wms/xie.wm ../watermarked/xie_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
354 cmp_xie_sig$(EXE) -s ../sigs/xie.sig ../wms/xie.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
355
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
356 xieinstall: xie
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
357 $(CP) gen_xie_sig$(EXE) wm_xie_e$(EXE) wm_xie_d$(EXE) cmp_xie_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
358
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
359 xieman: gen_xie_sig.ps wm_xie_e.ps wm_xie_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
360
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
361 wm_xie_e$(EXE): wm_xie_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
362 $(CC) $(LDFLAGS) -o $@ wm_xie_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
363
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
364 wm_xie_d$(EXE): wm_xie_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
365 $(CC) $(LDFLAGS) -o $@ wm_xie_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
366
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
367 gen_xie_sig$(EXE): gen_xie_sig$(O) wm$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
368 $(CC) $(LDFLAGS) -o $@ gen_xie_sig$(O) wm$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
369
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
370 cmp_xie_sig$(EXE): cmp_xie_sig$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
371 $(CC) $(LDFLAGS) -o $@ cmp_xie_sig$(O) $(WMLIB) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
372
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
373 xieclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
374 $(RM) gen_xie_sig$(EXE) wm_xie_e$(EXE) wm_xie_d$(EXE) cmp_xie_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
375
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
376 # Dugad's algorithm (DWT, blind)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
377
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
378 dugad: gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
379
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
380 dugadtest: dugad
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
381 gen_dugad_sig$(EXE) -o ../sigs/dugad.sig
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
382 wm_dugad_e$(EXE) -s ../sigs/dugad.sig -o ../watermarked/dugad_lena.pgm ../images/lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
383 wm_dugad_d$(EXE) -s ../sigs/dugad.sig -o ../wms/dugad.wm ../watermarked/dugad_lena.pgm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
384 cmp_dugad_sig$(EXE) -s ../sigs/dugad.sig ../wms/dugad.wm
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
385
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
386 dugadinstall: dugad
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
387 $(CP) gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE) $(INSTALLDIR)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
388
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
389 dugadman: gen_dugad_sig.ps wm_dugad_e.ps wm_dugad_d.ps
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
390
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
391 wm_dugad_e$(EXE): wm_dugad_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
392 $(CC) $(LDFLAGS) -o $@ wm_dugad_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
393
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
394 wm_dugad_d$(EXE): wm_dugad_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
395 $(CC) $(LDFLAGS) -o $@ wm_dugad_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
396
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
397 gen_dugad_sig$(EXE): gen_dugad_sig$(O)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
398 $(CC) $(LDFLAGS) -o $@ gen_dugad_sig$(O) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
399
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
400 cmp_dugad_sig$(EXE): cmp_dugad_sig$(O) $(LIBPREFIX)wm$(LIB)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
401 $(CC) $(LDFLAGS) -o $@ cmp_dugad_sig$(O) $(WMLIB) $(LIBS)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
402
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
403 dugadclean:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
404 $(RM) gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
405
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
406
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
407
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
408 clean: coxclean bruynclean kochclean corviclean xiaclean zhuclean xieclean \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
409 dugadclean kimclean wangclean frid2clean toolsclean libraryclean waveletclean
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
410 $(RM) *$(O) *.ps ../sigs/* ../wms/* ../watermarked/*
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
411
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
412
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
413 man: coxman bruynman kochman corviman xiaman xieman toolsman
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
414
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
415 test: coxtest bruyntest kochtest corvitest xiatest xietest dugadtest zhutest \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
416 wangtest frid2test kimtest toolstest
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
417
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
418 install: coxinstall bruyninstall kochinstall corviinstall xiainstall xieinstall \
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
419 dugadinstall zhuinstall wanginstall frid2install kiminstall toolsinstall
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
420
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
421 depend:
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
422 $(MAKEDEP) *.h *.c
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
423

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.