fixed font advance values.
[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 keyboard_viewer PreLoaderTemplate
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: simple_viewer.o
18         $(L) simple_viewer.o -o $@ ../lib/librfxswf.a $(LIBS) 
19 keyboard_viewer: keyboard_viewer.o
20         $(L) keyboard_viewer.o -o $@ ../lib/librfxswf.a $(LIBS) 
21 PreLoaderTemplate: PreLoaderTemplate.o
22         $(L) PreLoaderTemplate.o -o $@ ../lib/librfxswf.a $(LIBS) 
23
24 simple_viewer.swf: $(programs)
25         @echo Calling ./keybard_viewer to create keyboard_viewer.swf
26         ./simple_viewer
27
28 keyboard_viewer.swf: $(programs)
29         @echo Calling ./simple_viewer to create simple_viewer.swf
30         ./keyboard_viewer
31
32 PreLoaderTemplate.swf: $(programs)
33         @echo Calling ./PreLoaderTemplate to create PreLoaderTemplate.swf
34         ./PreLoaderTemplate
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 *.lo *.a *.la simple_viewer keyboard_viewer PreLoaderTemplate simple_viewer.swf keyboard_viewer.swf PreLoaderTemplate.swf
60