summaryrefslogtreecommitdiff
path: root/swfs/Makefile.in
blob: d6359f3b3270ab605b2d58f49dba3d51bca92bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
top_builddir = ..
srcdir = @srcdir@
top_srcdir = @top_srcdir@
include ../Makefile.common

all: simple_viewer.swf keyboard_viewer.swf PreLoaderTemplate.swf

programs = simple_viewer keyboard_viewer PreLoaderTemplate

simple_viewer.o: simple_viewer.c
	$(C) -I../lib simple_viewer.c -o $@
keyboard_viewer.o: keyboard_viewer.c
	$(C) -I../lib keyboard_viewer.c -o $@
PreLoaderTemplate.o: PreLoaderTemplate.c
	$(C) -I../lib PreLoaderTemplate.c -o $@

simple_viewer: simple_viewer.o ../lib/librfxswf.a
	$(L) simple_viewer.o -o $@ ../lib/librfxswf.a $(LIBS) 
keyboard_viewer: keyboard_viewer.o ../lib/librfxswf.a
	$(L) keyboard_viewer.o -o $@ ../lib/librfxswf.a $(LIBS) 
PreLoaderTemplate: PreLoaderTemplate.o ../lib/librfxswf.a
	$(L) PreLoaderTemplate.o -o $@ ../lib/librfxswf.a $(LIBS) 

simple_viewer.swf: $(programs)
	@echo Calling ./keybard_viewer to create keyboard_viewer.swf
	./simple_viewer

keyboard_viewer.swf: $(programs)
	@echo Calling ./simple_viewer to create simple_viewer.swf
	./keyboard_viewer

PreLoaderTemplate.swf: $(programs)
	@echo Calling ./PreLoaderTemplate to create PreLoaderTemplate.swf
	./PreLoaderTemplate

install:
	$(mkinstalldirs) $(pkgdatadir)
	$(mkinstalldirs) $(pkgdatadir)/swfs
	$(INSTALL_DATA) ./simple_viewer.swf $(pkgdatadir)/swfs/simple_viewer.swf
	$(INSTALL_DATA) ./keyboard_viewer.swf $(pkgdatadir)/swfs/keyboard_viewer.swf
	$(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
	$(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
	$(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
	test -f $(pkgdatadir)/swfs/default_viewer.swf || \
	    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf;
	test -f $(pkgdatadir)/swfs/default_loader.swf || \
	    $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf;
		
uninstall:
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/keyboard_viewer.swf
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/PreLoaderTemplate.swf
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/tessel_loader.swf
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/swft_loader.swf
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
	$(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_loader.swf

clean: 
	rm -f *.o *.lo *.a *.la gmon.out simple_viewer keyboard_viewer PreLoaderTemplate simple_viewer.swf keyboard_viewer.swf PreLoaderTemplate.swf