X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=swfs%2FMakefile.in;h=5afc5ab91da89592cbc6391d876dd691a5248ab1;hb=d917919d09ef5eea96192b2fd19fb9bfb6930841;hp=2adc5f78259619dd313387d4485b417161bc79e0;hpb=fc99c82c6d7570f2045b7a68c37bd778a6668ef0;p=swftools.git diff --git a/swfs/Makefile.in b/swfs/Makefile.in index 2adc5f7..5afc5ab 100644 --- a/swfs/Makefile.in +++ b/swfs/Makefile.in @@ -34,9 +34,7 @@ oldincludedir = /usr/include DESTDIR = -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ +pkgdatadir = $(datadir)/@PACKAGE@/swfs top_builddir = .. @@ -58,7 +56,6 @@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ -CC = @CC@ CPP = @CPP@ CXX = @CXX@ EXEEXT = @EXEEXT@ @@ -73,16 +70,18 @@ USE_GZIP = @USE_GZIP@ VERSION = @VERSION@ WORDS_BIGENDIAN = @WORDS_BIGENDIAN@ -bin_PROGRAMS = simple_viewer +bin_PROGRAMS = simple_viewer PreLoaderTemplate LDADD = simple_viewer_SOURCES = simple_viewer.c -simple_viewer_LDADD = ../lib/rfxswf.o +simple_viewer_LDADD = ../lib/librfxswf.a +PreLoaderTemplate_SOURCES = PreLoaderTemplate.c +PreLoaderTemplate_LDADD = ../lib/librfxswf.a INCLUDES = -I../lib pkgdata_DATA = simple_viewer.swf PreLoaderTemplate.swf swft_loader.swf tessel_loader.swf mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = -bin_PROGRAMS = simple_viewer$(EXEEXT) +bin_PROGRAMS = simple_viewer$(EXEEXT) PreLoaderTemplate$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) @@ -91,11 +90,14 @@ CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ simple_viewer_OBJECTS = simple_viewer.o -simple_viewer_DEPENDENCIES = ../lib/rfxswf.o +simple_viewer_DEPENDENCIES = ../lib/librfxswf.a simple_viewer_LDFLAGS = +PreLoaderTemplate_OBJECTS = PreLoaderTemplate.o +PreLoaderTemplate_DEPENDENCIES = ../lib/librfxswf.a +PreLoaderTemplate_LDFLAGS = CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) +CC = @CC@ $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = @CC@ LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DATA = $(pkgdata_DATA) @@ -106,9 +108,9 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best -DEP_FILES = .deps/simple_viewer.P -SOURCES = $(simple_viewer_SOURCES) -OBJECTS = $(simple_viewer_OBJECTS) +DEP_FILES = .deps/simple_viewer.P .deps/PreLoaderTemplate.P +SOURCES = $(simple_viewer_SOURCES) $(PreLoaderTemplate_SOURCES) +OBJECTS = $(simple_viewer_OBJECTS) $(PreLoaderTemplate_OBJECTS) all: all-redirect .SUFFIXES: @@ -121,17 +123,18 @@ clean-binPROGRAMS: distclean-binPROGRAMS: -maintainer-clean-binPROGRAMS: - simple_viewer.swf: simple_viewer echo Calling ./simple_viewer to create simple_viewer.swf ./simple_viewer +PreLoaderTemplate.swf: PreLoaderTemplate + echo Calling ./PreLoaderTemplate to create PreLoaderTemplate.swf + ./PreLoaderTemplate .s.o: - $(COMPILE) -c $< + $(CC) -c $< .S.o: - $(COMPILE) -c $< + $(CC) -c $< mostlyclean-compile: -rm -f *.o core *.core @@ -141,12 +144,14 @@ clean-compile: distclean-compile: -rm -f *.tab.c -maintainer-clean-compile: - simple_viewer$(EXEEXT): $(simple_viewer_OBJECTS) $(simple_viewer_DEPENDENCIES) @rm -f simple_viewer$(EXEEXT) $(LINK) $(simple_viewer_LDFLAGS) $(simple_viewer_OBJECTS) $(simple_viewer_LDADD) $(LIBS) +PreLoaderTemplate$(EXEEXT): $(PreLoaderTemplate_OBJECTS) $(PreLoaderTemplate_DEPENDENCIES) + @rm -f PreLoaderTemplate$(EXEEXT) + $(LINK) $(PreLoaderTemplate_LDFLAGS) $(PreLoaderTemplate_OBJECTS) $(PreLoaderTemplate_LDADD) $(LIBS) + install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) @@ -159,12 +164,20 @@ install-pkgdataDATA: $(pkgdata_DATA) $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \ fi; fi; \ done + test -f $(DESTDIR)$(pkgdatadir)/default_viewer.swf || \ + $(LN_S) $(DESTDIR)$(pkgdatadir)/simple_viewer.swf $(DESTDIR)$(pkgdatadir)/default_viewer.swf; \ + test -f $(DESTDIR)$(pkgdatadir)/default_loader.swf || \ + $(LN_S) $(DESTDIR)$(pkgdatadir)/tessel_loader.swf $(DESTDIR)$(pkgdatadir)/default_loader.swf; \ + +uninstall-binPROGRAMS: uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) list='$(pkgdata_DATA)'; for p in $$list; do \ rm -f $(DESTDIR)$(pkgdatadir)/$$p; \ done + rm -f $(DESTDIR)$(pkgdatadir)/default_viewer.swf + rm -f $(DESTDIR)$(pkgdatadir)/default_loader.swf tags: TAGS @@ -193,8 +206,6 @@ clean-tags: distclean-tags: -rm -f TAGS ID -maintainer-clean-tags: - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = swfs @@ -216,8 +227,6 @@ distdir: $(DISTFILES) DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) --include $(DEP_FILES) - mostlyclean-depend: clean-depend: @@ -225,26 +234,15 @@ clean-depend: distclean-depend: -rm -rf .deps -maintainer-clean-depend: - %.o: %.c - @echo '$(COMPILE) -c $<'; \ - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @echo '$(CC) -c $<'; \ + $(CC) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp -%.lo: %.c - @echo '$(LTCOMPILE) -c $<'; \ - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ - < .deps/$(*F).pp > .deps/$(*F).P; \ - tr ' ' '\012' < .deps/$(*F).pp \ - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ - >> .deps/$(*F).P; \ - rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: @@ -278,7 +276,6 @@ distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* -maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic @@ -294,15 +291,6 @@ distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean: distclean-am -maintainer-clean-am: maintainer-clean-binPROGRAMS \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-depend maintainer-clean-generic \ - distclean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -maintainer-clean: maintainer-clean-am - .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \