switched to zlib
[swftools.git] / swfs / Makefile.in
1 top_builddir = ..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
5
6 all: simple_viewer.swf keyboard_viewer.swf PreLoaderTemplate.swf
7
8 programs = simple_viewer$(E) keyboard_viewer$(E) PreLoaderTemplate$(E)
9
10 simple_viewer.$(O): simple_viewer.c
11         $(C) -I../lib simple_viewer.c -o $@
12 keyboard_viewer.$(O): keyboard_viewer.c
13         $(C) -I../lib keyboard_viewer.c -o $@
14 PreLoaderTemplate.$(O): PreLoaderTemplate.c
15         $(C) -I../lib PreLoaderTemplate.c -o $@
16
17 simple_viewer$(E): simple_viewer.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
18         $(L) simple_viewer.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS) 
19 keyboard_viewer$(E): keyboard_viewer.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A) 
20         $(L) keyboard_viewer.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS) 
21 PreLoaderTemplate$(E): PreLoaderTemplate.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A) 
22         $(L) PreLoaderTemplate.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS) 
23
24 simple_viewer.swf: $(programs)
25         @echo Calling ./keybard_viewer to create keyboard_viewer.swf
26         ./simple_viewer$(E) || true
27
28 keyboard_viewer.swf: $(programs)
29         @echo Calling ./simple_viewer to create simple_viewer.swf
30         ./keyboard_viewer$(E) || true
31
32 PreLoaderTemplate.swf: $(programs)
33         @echo Calling ./PreLoaderTemplate to create PreLoaderTemplate.swf
34         ./PreLoaderTemplate$(E) || true
35
36 install:
37         $(mkinstalldirs) $(pkgdatadir)
38         $(mkinstalldirs) $(pkgdatadir)/swfs
39         $(INSTALL_DATA) ./simple_viewer.swf $(pkgdatadir)/swfs/simple_viewer.swf
40         $(INSTALL_DATA) ./keyboard_viewer.swf $(pkgdatadir)/swfs/keyboard_viewer.swf
41         $(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
42         $(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
43         $(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
44         test -f $(pkgdatadir)/swfs/default_viewer.swf || \
45             $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf;
46         test -f $(pkgdatadir)/swfs/default_loader.swf || \
47             $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf;
48                 
49 uninstall:
50         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
51         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/keyboard_viewer.swf
52         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/PreLoaderTemplate.swf
53         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/tessel_loader.swf
54         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/swft_loader.swf
55         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
56         $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_loader.swf
57
58 clean: 
59         rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out 
60         rm -f simple_viewer keyboard_viewer PreLoaderTemplate 
61         rm -f simple_viewer$(E) keyboard_viewer$(E) PreLoaderTemplate$(E) 
62         rm -f simple_viewer.exe keyboard_viewer.exe PreLoaderTemplate.exe
63         rm -f simple_viewer.swf keyboard_viewer.swf PreLoaderTemplate.swf
64