comparison Meerwald/Makefile @ 3:acb6967ee76d

update to 0.5
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 21:11:21 +0200
parents be303a3f5ea8
children aa7b4c3a7313
comparison
equal deleted inserted replaced
2:b92f06d9a967 3:acb6967ee76d
1 # Makefile 1 # Makefile
2 2
3 # choose build platform 3 # chose build plattform
4 include ../make/make.config 4 include ../make/make.config
5
6 OPTIONS=-DPARAM_STUFF -DPOLLEN_STUFF
5 7
6 all: tools \ 8 all: tools \
7 bruyn \ 9 bruyn \
8 koch \ 10 koch \
9 corvi \ 11 corvi \
10 xia \ 12 xia \
11 xie \ 13 xie \
14 xie2 \
12 cox \ 15 cox \
13 zhu \ 16 zhu \
14 dugad \ 17 dugad \
15 wang \ 18 wang \
16 frid2 \ 19 frid2 \
17 kim 20 kim \
21 kund2 \
22 kund3
18 23
19 .SUFFIXES: .c .o .1 .ps 24 .SUFFIXES: .c .o .1 .ps
20 25
21 .c$(O): 26 .c$(O):
22 $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $< 27 $(CC) $(CFLAGS) $(INCLUDES) $(OPTIONS) -o $@ -c $<
23 28
24 .1.ps: 29 .1.ps:
25 $(GROFF) $< > $@ 30 $(GROFF) $< > $@
26 31
27 # library containing general stuff 32 # library containing general stuff
52 $(CP) cmp_pgm$(EXE) cmp_dct8x8$(EXE) cmp_dct$(EXE) cmp_dwt$(EXE) $(INSTALLDIR) 57 $(CP) cmp_pgm$(EXE) cmp_dct8x8$(EXE) cmp_dct$(EXE) cmp_dwt$(EXE) $(INSTALLDIR)
53 58
54 toolsman: cmp_pgm.ps cmp_dct8x8.ps cmp_dct.ps 59 toolsman: cmp_pgm.ps cmp_dct8x8.ps cmp_dct.ps
55 60
56 toolsclean: 61 toolsclean:
57 $(RM) cmp_pgm$(EXE) cmp_dct$(EXE) cmp_dct8x8$(EXE) 62 $(RM) cmp_pgm$(EXE) cmp_dct$(EXE) cmp_dct8x8$(EXE) cmp_dwt$(EXE)
58 63
59 cmp_pgm$(EXE): cmp_pgm$(O) $(LIBPREFIX)wm$(LIB) 64 cmp_pgm$(EXE): cmp_pgm$(O) $(LIBPREFIX)wm$(LIB)
60 $(CC) $(LDFLAGS) -o $@ cmp_pgm$(O) $(WMLIB) $(PGMLIBS) 65 $(CC) $(LDFLAGS) -o $@ cmp_pgm$(O) $(WMLIB) $(PGMLIBS) $(LIBS)
61 66
62 cmp_dct$(EXE): cmp_dct$(O) $(LIBPREFIX)wm$(LIB) 67 cmp_dct$(EXE): cmp_dct$(O) $(LIBPREFIX)wm$(LIB)
63 $(CC) $(LDFLAGS) -o $@ cmp_dct$(O) $(WMLIB) $(PGMLIBS) 68 $(CC) $(LDFLAGS) -o $@ cmp_dct$(O) $(WMLIB) $(PGMLIBS)
64 69
65 cmp_dwt$(EXE): cmp_dwt$(O) $(LIBPREFIX)wavelet$(LIB) $(LIBPREFIX)wm$(LIB) 70 cmp_dwt$(EXE): cmp_dwt$(O) $(LIBPREFIX)wavelet$(LIB) $(LIBPREFIX)wm$(LIB)
371 $(CC) $(LDFLAGS) -o $@ cmp_xie_sig$(O) $(WMLIB) $(LIBS) 376 $(CC) $(LDFLAGS) -o $@ cmp_xie_sig$(O) $(WMLIB) $(LIBS)
372 377
373 xieclean: 378 xieclean:
374 $(RM) gen_xie_sig$(EXE) wm_xie_e$(EXE) wm_xie_d$(EXE) cmp_xie_sig$(EXE) 379 $(RM) gen_xie_sig$(EXE) wm_xie_e$(EXE) wm_xie_d$(EXE) cmp_xie_sig$(EXE)
375 380
381 # Xie2's algorithm (DWT, blind, binary, quantization, approximation image)
382
383 xie2: gen_xie2_sig$(EXE) wm_xie2_e$(EXE) wm_xie2_d$(EXE) cmp_xie2_sig$(EXE)
384
385 xie2test: xie2
386 gen_xie2_sig$(EXE) -n 800 gen_xie2_sig.c > ../sigs/xie2.sig
387 wm_xie2_e$(EXE) -s ../sigs/xie2.sig -o ../watermarked/xie2_lena.pgm ../images/lena.pgm
388 wm_xie2_d$(EXE) -s ../sigs/xie2.sig -o ../wms/xie2.wm ../watermarked/xie2_lena.pgm
389 cmp_xie2_sig$(EXE) -s ../sigs/xie2.sig ../wms/xie2.wm
390
391 xie2install: xie2
392 $(CP) gen_xie2_sig$(EXE) wm_xie2_e$(EXE) wm_xie2_d$(EXE) cmp_xie2_sig$(EXE) $(INSTALLDIR)
393
394 xie2man: gen_xie2_sig.ps wm_xie2_e.ps wm_xie2_d.ps
395
396 wm_xie2_e$(EXE): wm_xie2_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
397 $(CC) $(LDFLAGS) -o $@ wm_xie2_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
398
399 wm_xie2_d$(EXE): wm_xie2_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
400 $(CC) $(LDFLAGS) -o $@ wm_xie2_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
401
402 gen_xie2_sig$(EXE): gen_xie2_sig$(O) wm$(O)
403 $(CC) $(LDFLAGS) -o $@ gen_xie2_sig$(O) wm$(O) $(LIBS)
404
405 cmp_xie2_sig$(EXE): cmp_xie2_sig$(O) $(LIBPREFIX)wm$(LIB)
406 $(CC) $(LDFLAGS) -o $@ cmp_xie2_sig$(O) $(WMLIB) $(LIBS)
407
408 xie2clean:
409 $(RM) gen_xie2_sig$(EXE) wm_xie2_e$(EXE) wm_xie2_d$(EXE) cmp_xie2_sig$(EXE)
410
411 # Kundur's algorithm 2 (DWT, blind, binary, quantization, detail subbands, reference watermark)
412
413 kund2: gen_kund2_sig$(EXE) wm_kund2_e$(EXE) wm_kund2_d$(EXE) cmp_kund2_sig$(EXE)
414
415 kund2test: kund2
416 gen_kund2_sig$(EXE) -n 1000 -l 3 -q 2 gen_kund2_sig.c > ../sigs/kund2.sig
417 wm_kund2_e$(EXE) -s ../sigs/kund2.sig -o ../watermarked/kund2_lena.pgm ../images/lena.pgm
418 cjpeg -quality 70 ../watermarked/kund2_lena.pgm | djpeg | wm_kund2_d$(EXE) -s ../sigs/kund2.sig -o ../wms/kund2.wm
419 cmp_kund2_sig$(EXE) -s ../sigs/kund2.sig ../wms/kund2.wm
420
421 kund2install: kund2
422 $(CP) gen_kund2_sig$(EXE) wm_kund2_e$(EXE) wm_kund2_d$(EXE) cmp_kund2_sig$(EXE) $(INSTALLDIR)
423
424 kund2man: gen_kund2_sig.ps wm_kund2_e.ps wm_kund2_d.ps
425
426 wm_kund2_e$(EXE): wm_kund2_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
427 $(CC) $(LDFLAGS) -o $@ wm_kund2_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
428
429 wm_kund2_d$(EXE): wm_kund2_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
430 $(CC) $(LDFLAGS) -o $@ wm_kund2_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
431
432 gen_kund2_sig$(EXE): gen_kund2_sig$(O) wm$(O) signature$(O)
433 $(CC) $(LDFLAGS) -o $@ gen_kund2_sig$(O) wm$(O) signature$(O) $(LIBS)
434
435 cmp_kund2_sig$(EXE): cmp_kund2_sig$(O) $(LIBPREFIX)wm$(LIB)
436 $(CC) $(LDFLAGS) -o $@ cmp_kund2_sig$(O) $(WMLIB) $(LIBS)
437
438 kund2clean:
439 $(RM) gen_kund2_sig$(EXE) wm_kund2_e$(EXE) wm_kund2_d$(EXE) cmp_kund2_sig$(EXE)
440
441 # Kundur's algorithm 3 (DWT, blind, binary, quantization, detail subbands)
442
443 kund3: gen_kund3_sig$(EXE) wm_kund3_e$(EXE) wm_kund3_d$(EXE) cmp_kund3_sig$(EXE)
444
445 kund3test: kund3
446 gen_kund3_sig$(EXE) -n 1000 -l 2 -q 2 gen_kund3_sig.c > ../sigs/kund3.sig
447 wm_kund3_e$(EXE) -s ../sigs/kund3.sig -o ../watermarked/kund3_lena.pgm ../images/lena.pgm
448 wm_kund3_d$(EXE) -s ../sigs/kund3.sig -o ../wms/kund3.wm ../watermarked/kund3_lena.pgm
449 cmp_kund3_sig$(EXE) -s ../sigs/kund3.sig ../wms/kund3.wm
450
451 kund3install: kund3
452 $(CP) gen_kund3_sig$(EXE) wm_kund3_e$(EXE) wm_kund3_d$(EXE) cmp_kund3_sig$(EXE) $(INSTALLDIR)
453
454 kund3man: gen_kund3_sig.ps wm_kund3_e.ps wm_kund3_d.ps
455
456 wm_kund3_e$(EXE): wm_kund3_e$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
457 $(CC) $(LDFLAGS) -o $@ wm_kund3_e$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
458
459 wm_kund3_d$(EXE): wm_kund3_d$(O) $(LIBPREFIX)wm$(LIB) $(LIBPREFIX)wavelet$(LIB)
460 $(CC) $(LDFLAGS) -o $@ wm_kund3_d$(O) $(WMLIB) $(WAVELIB) $(LIBS) $(PGMLIBS)
461
462 gen_kund3_sig$(EXE): gen_kund3_sig$(O) wm$(O) signature$(O)
463 $(CC) $(LDFLAGS) -o $@ gen_kund3_sig$(O) wm$(O) signature$(O) $(LIBS)
464
465 cmp_kund3_sig$(EXE): cmp_kund3_sig$(O) $(LIBPREFIX)wm$(LIB)
466 $(CC) $(LDFLAGS) -o $@ cmp_kund3_sig$(O) $(WMLIB) $(LIBS)
467
468 kund3clean:
469 $(RM) gen_kund3_sig$(EXE) wm_kund3_e$(EXE) wm_kund3_d$(EXE) cmp_kund3_sig$(EXE)
470
376 # Dugad's algorithm (DWT, blind) 471 # Dugad's algorithm (DWT, blind)
377 472
378 dugad: gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE) 473 dugad: gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE)
379 474
380 dugadtest: dugad 475 dugadtest: dugad
403 dugadclean: 498 dugadclean:
404 $(RM) gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE) 499 $(RM) gen_dugad_sig$(EXE) wm_dugad_e$(EXE) wm_dugad_d$(EXE) cmp_dugad_sig$(EXE)
405 500
406 501
407 502
408 clean: coxclean bruynclean kochclean corviclean xiaclean zhuclean xieclean \ 503 clean: coxclean bruynclean kochclean corviclean xiaclean zhuclean xieclean kund3clean kund2clean \
409 dugadclean kimclean wangclean frid2clean toolsclean libraryclean waveletclean 504 dugadclean kimclean wangclean frid2clean toolsclean libraryclean waveletclean xie2clean
410 $(RM) *$(O) *.ps ../sigs/* ../wms/* ../watermarked/* 505 $(RM) *$(O) *.ps ../sigs/* ../wms/* ../watermarked/*
411 506
412 507
413 man: coxman bruynman kochman corviman xiaman xieman toolsman 508 man: coxman bruynman kochman corviman xiaman xieman toolsman
414 509
415 test: coxtest bruyntest kochtest corvitest xiatest xietest dugadtest zhutest \ 510 test: coxtest bruyntest kochtest corvitest xiatest xietest dugadtest zhutest \
416 wangtest frid2test kimtest toolstest 511 wangtest frid2test kimtest toolstest kund3test kund2test
417 512
418 install: coxinstall bruyninstall kochinstall corviinstall xiainstall xieinstall \ 513 install: coxinstall bruyninstall kochinstall corviinstall xiainstall xieinstall \
419 dugadinstall zhuinstall wanginstall frid2install kiminstall toolsinstall 514 dugadinstall zhuinstall wanginstall frid2install kiminstall toolsinstall kund3install kund2install
420 515
421 depend: 516 depend:
422 $(MAKEDEP) *.h *.c 517 $(MAKEDEP) *.h *.c
423 518

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