summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/Makefile.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-16 00:19:13 +0000
committerKarl Berry <karl@freefriends.org>2009-05-16 00:19:13 +0000
commitbab45528d65eaafe68a705dbb2a57075c7b7cbd8 (patch)
tree10b4ae2b5195c8dede153ab89359ec00f55f325f /Build/source/utils/asymptote/Makefile.in
parent8643d90372e9c31e0f461c15c596b60a545bd7d3 (diff)
asymptote 1.72 sources (not integrated into build yet)
git-svn-id: svn://tug.org/texlive/trunk@13110 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/Makefile.in')
-rw-r--r--Build/source/utils/asymptote/Makefile.in258
1 files changed, 258 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/Makefile.in b/Build/source/utils/asymptote/Makefile.in
new file mode 100644
index 00000000000..91613c1ff75
--- /dev/null
+++ b/Build/source/utils/asymptote/Makefile.in
@@ -0,0 +1,258 @@
+# @configure_input@
+
+ARCH = unix
+POLL = poll
+
+GC = @GCDIR@
+GCOPTIONS = @GCOPTIONS@
+GCLIB = @GCLIB@
+GCPPLIB = @GCPPLIB@
+GCLIBS = $(GCPPLIB) $(GCLIB)
+LFLAGS = @LDFLAGS@
+LIBS = $(LFLAGS) @LIBS@ $(GCLIBS)
+
+CAMP = camperror path drawpath drawlabel picture psfile texfile util settings \
+ guide flatguide knot drawfill path3 drawpath3 drawsurface
+
+PRC = prc/PRCbitStream prc/oPRCFile prc/PRCdouble prc/writePRC
+
+FILES = $(CAMP) runtime env genv main stm dec errormsg \
+ callable name symbol types entry exp newexp stack camp.tab lex.yy \
+ access absyn record interact fileio builtin fftw++ simpson coder coenv \
+ @getopt@ locate parser program application varinit fundec refaccess \
+ envcompleter process constructor array Delaunay predicates \
+ $(PRC) glrender tr arcball algebra3 quaternion svnrevision
+
+DIST = camp.tab.h camp.tab.cc lex.yy.cc runtime.h runtime.cc keywords.cc \
+ asy-keywords.el base/asy-keywords.el
+NAME = asy
+XNAME = x$(NAME)
+CLEAN = camp.output asy.list svnrevision.cc doc/version.texi GUI/xasyVersion.py $(XNAME)
+EXTRA = asy-mode.el asy-keywords.el asy-init.el asy.vim asymptote.py reload.js nopapersize.ps
+EXEXTRA = piicon.eps *.views *.dat
+DOCEXTRA = *.asy *.csv *.dat latexusage.tex externalprc.tex pixel.pdf
+KEYWORDS = base $(ASYMPTOTE_SITEDIR)
+LATEXFILES = asymptote.sty asycolors.sty
+ASY = ./asy -dir base -config "" -render=0
+
+DEFS = @DEFS@ @OPTIONS@
+CFLAGS = @CPPFLAGS@ @CFLAGS@
+OPTS = $(DEFS) $(CFLAGS)
+INCL = -I . @INCL@
+
+CXX = @CXX@ -Wall -ansi
+CC = @CC@ -Wall -ansi
+MAKEDEPEND = $(OPTS) -O0 -M -DDEPEND
+BISON = bison
+LEX = @LEX@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+datarootdir = @datarootdir@
+bindir = $(DESTDIR)@bindir@
+mandir = $(DESTDIR)@mandir@
+infodir = $(DESTDIR)@infodir@
+datadir = $(DESTDIR)@datadir@
+asydir = $(datadir)/asymptote
+GUIdir = $(asydir)/GUI
+docdir = $(DESTDIR)@docdir@
+exampledir = $(docdir)/examples
+animationsdir = $(exampledir)/animations
+latexdir = $(DESTDIR)@latexdir@
+INSTALL = @INSTALL@
+REVISION = "const char *SVN_REVISION="
+revision = `svn info 2>/dev/null | grep "Revision" | sed -e "s/Revision: \(.*\)/-r\1/"`
+last = `cat svnrevision.cc | sed -e 's/.*\"\(.*\)\";/\\1/'`
+
+export prefix docdir exampledir mandir infodir INSTALL MAKE DESTDIR TEXI2DVI
+
+asy: $(GCLIB) $(FILES:=.o) prc
+ if test "$(revision)" != "$(last)"; then \
+ echo $(REVISION)\"$(revision)\"\; > svnrevision.cc; \
+ $(CXX) $(OPTS) $(INCL) -o svnrevision.o -c svnrevision.cc; \
+ fi
+ echo string VERSION=\"@VERSION@$(revision)\"\; > base/version.asy
+ echo @set VERSION @VERSION@$(revision) > doc/version.texi
+ echo @set Datadir @datadir@ >> doc/version.texi
+ echo "#!/usr/bin/env python" > GUI/xasyVersion.py
+ echo xasyVersion = \"@VERSION@$(revision)\" >> GUI/xasyVersion.py
+ ln -sf GUI/xasy.py $(XNAME)
+ $(CXX) $(OPTS) -o $(NAME) $(FILES:=.o) $(LIBS)
+
+svnrevision.cc:
+ echo $(REVISION)\"\"\; > svnrevision.cc;
+
+msdos: $(GCLIB) $(FILES:=.o) prc asy.o
+ echo string VERSION=\"@VERSION@\"\; > base/version.asy
+ echo @set VERSION @VERSION@ > doc/version.texi
+ echo @set Datadir @datadir@ >> doc/version.texi
+ echo "#!/usr/bin/env python" > GUI/xasyVersion.py
+ echo xasyVersion = \"@VERSION@\" >> GUI/xasyVersion.py
+ $(CXX) $(OPTS) -o $(NAME) $(FILES:=.o) asy.o $(LIBS) -s -static
+
+asy.o: asy.rc asy.ico Makefile
+ cat asy.rc | sed -e "s/ASYMPTOTE_VERSION/@VERSION@$(revision)/" | \
+ windres -o asy.o
+
+all: asy man faq asy-keywords.el
+
+$(GCLIB): $(GC).tar.gz
+ gunzip -c $(GC).tar.gz > $(GC).tar
+ tar -xf $(GC).tar
+ rm -f $(GC).tar
+ if test "$(GC)" = "gc6.8"; then \
+ cd $(GC)/include; patch < ../../patches/gc6.8_AIX.patch; \
+ fi
+ if test "$(GC)" = "gc-7.0"; then \
+ cd $(GC)/include/private; patch < ../../../patches/gc-7.0nomem.patch;\
+ fi
+ cd $(GC); \
+ ./configure $(GCOPTIONS); \
+ $(MAKE) check
+
+$(GCPPLIB): $(GCLIB)
+
+html: asy
+ cd doc; $(MAKE) doc
+
+man: asy
+ cd doc; $(MAKE) man
+
+faq: asy
+ cd doc; $(MAKE) faq
+
+runtime.cc: runtime.pl runtime.in
+ ./runtime.pl
+
+camp.tab.cc: camp.y
+ $(BISON) -dvt -b camp camp.y && mv camp.tab.c camp.tab.cc
+
+camp.tab.h: camp.tab.cc
+
+lex.yy.cc: camp.l
+ $(LEX) -d -olex.yy.cc camp.l
+
+lex.yy.d: $(GCLIB) lex.yy.cc camp.tab.h
+
+keywords.cc: keywords.pl camp.l
+ ./keywords.pl
+
+envcompleter.d: keywords.cc
+
+asy.list: asy
+ $(ASY) -l > asy.list
+ ls $(addsuffix /*.asy,$(KEYWORDS)) | grep -v plain\* | grep -v three_\* | grep -v featpost3D | xargs $(ASY) -l >> asy.list
+ ./asy-list.pl asy.list @VERSION@
+
+asy-keywords.el: asy.list
+ ln -sf ../asy-keywords.el base/
+
+install: asy-keywords.el install-asy install-man
+
+install-all: asy-keywords.el install-asy install-doc
+
+install-asy: asy
+ ${INSTALL} -d $(bindir) $(asydir) $(GUIdir) $(exampledir) \
+ $(animationsdir)
+ -${INSTALL} -d $(latexdir)
+ ${INSTALL} -p -m 755 $(NAME) $(bindir)
+ ${INSTALL} -p -m 644 base/*.asy $(addprefix base/,$(EXTRA)) $(asydir)
+ ${INSTALL} -p -m 755 GUI/*.py $(GUIdir)
+ ln -sf @datadir@/asymptote/GUI/xasy.py $(bindir)/$(XNAME)
+ ${INSTALL} -p -m 644 examples/*.asy $(addprefix examples/,$(EXEXTRA)) \
+ doc/extra/*.asy $(addprefix doc/,$(DOCEXTRA)) $(exampledir)
+ ${INSTALL} -p -m 644 examples/animations/*.asy \
+ examples/animations/inlinemovie.tex \
+ examples/animations/inlinemovie3.tex $(animationsdir)
+ -${INSTALL} -p -m 644 $(addprefix doc/,$(LATEXFILES)) $(latexdir)
+ -if test -z "$(DESTDIR)"; then \
+ texhash; \
+ fi
+
+install-doc: html
+ cd doc; $(MAKE) install-all
+
+install-man: man
+ cd doc; $(MAKE) install
+
+uninstall: uninstall-all
+
+uninstall-all: uninstall-man uninstall-asy
+
+uninstall-asy:
+ -cd $(animationsdir); rm -f *.asy *.tex
+ -rmdir $(animationsdir)
+ -cd $(exampledir); rm -f $(EXEXTRA) $(DOCEXTRA)
+ -rmdir $(exampledir)
+ -rmdir $(docdir)
+ -cd $(GUIdir); rm -f *.py
+ -rmdir $(GUIdir)
+ -cd $(asydir); rm -f *.asy $(EXTRA)
+ -rmdir $(asydir)
+ -cd $(latexdir); rm -f $(LATEXFILES)
+ -rmdir $(latexdir)
+ -cd $(bindir); rm -f $(NAME) $(XNAME)
+
+uninstall-man:
+ cd doc; $(MAKE) uninstall
+
+prc-clean: FORCE
+ -rm -f prc/*.o prc/*.d
+
+clean: FORCE prc-clean
+ -rm -f asy *.o *.d *mon.out $(CLEAN)
+
+gc-clean: FORCE clean
+ -if test -d $(GC); then \
+ $(MAKE) -C $(GC) clean; \
+ fi
+
+cleaner: FORCE distclean
+distclean: FORCE clean
+ -if test -d $(GC); then \
+ rm -rf $(GC); \
+ fi
+ -rm -f Makefile config.h config.log config.status errors.temp
+ cd doc; $(MAKE) distclean
+ cd tests; $(MAKE) distclean
+
+cleanest: FORCE maintainer-clean
+maintainer-clean: FORCE distclean
+ -rm -f configure config.h.in $(DIST)
+ -rm -rf autom4te.cache
+
+check: asy FORCE
+ ./wce
+ $(MAKE) -C tests
+
+.SUFFIXES: .c .cc .o .d
+.cc.o:
+ $(CXX) $(OPTS) $(INCL) -o $@ -c $<
+.cc.d:
+ @echo Creating $@; \
+ rm -f $@; \
+ ${CXX} $(MAKEDEPEND) $(INCL) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
+ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
+ rm -f $@.$$$$
+.c.d:
+ @echo Creating $@; \
+ rm -f $@; \
+ ${CC} $(MAKEDEPEND) $(INCL) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
+ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
+ rm -f $@.$$$$
+
+ifeq (,$(findstring clean,${MAKECMDGOALS}))
+-include $(FILES:=.d)
+endif
+
+FORCE:
+
+configure: configure.ac
+ autoheader && autoconf
+
+Makefile: Makefile.in config.status
+ ./config.status
+
+config.status: configure
+ ./config.status --recheck
+