summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/Makefile.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-27 22:27:57 +0000
committerKarl Berry <karl@freefriends.org>2019-03-27 22:27:57 +0000
commit9121faed0cf54a08882acf41120cf28fc3a32998 (patch)
treefe7f0c5e9ed02fe4a1fc389c27c88750c2807e43 /Build/source/utils/asymptote/Makefile.in
parentb8e24fbf964b4030f68a8484a53d405869693266 (diff)
asy 2.48 sources
git-svn-id: svn://tug.org/texlive/trunk@50622 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/Makefile.in')
-rw-r--r--Build/source/utils/asymptote/Makefile.in43
1 files changed, 26 insertions, 17 deletions
diff --git a/Build/source/utils/asymptote/Makefile.in b/Build/source/utils/asymptote/Makefile.in
index 437026673c0..0384239e55c 100644
--- a/Build/source/utils/asymptote/Makefile.in
+++ b/Build/source/utils/asymptote/Makefile.in
@@ -12,13 +12,13 @@ GCPPLIB = @GCPPLIB@
GCLIBS = $(GCPPLIB) $(GCLIB)
LFLAGS = @LDFLAGS@
LIBS = $(LFLAGS) @PTHREAD_LIBS@ @LIBS@ $(GCLIBS)
-DOSLIBS = $(subst -lncurses, -ltermcap, $(LIBS)) -s -static
+DOSLIBS = $(subst -lncurses, -ltermcap, $(LIBS)) -lgdi32 -lwinmm -s -static
PERL = perl
# Libraries needed to make asymptote.so.
# We have to remove OpenGL, threading, GC, etc from this.
-SHAREDLIBS = $(filter-out -lGL -lGLU -lglut -pthread $(GCLIBS), $(LIBS))
+SHAREDLIBS = $(filter-out -lglut -GL -pthread $(GCLIBS), $(LIBS))
vpath %.cc prc
vpath %.ui GUI/windows
@@ -43,17 +43,18 @@ COREFILES = $(CAMP) $(SYMBOL_FILES) env genv stm dec errormsg \
fftw++asy simpson coder coenv impdatum \
@getopt@ locate parser program application varinit fundec refaccess \
envcompleter process constructor array Delaunay predicates \
- $(PRC) glrender tr arcball algebra3 quaternion
+ $(PRC) glrender tr arcball algebra3 quaternion shaders
FILES = $(COREFILES) main
SYMBOLSH = opsymbols.h allsymbols.h $(SYMBOL_FILES:=.symbols.h)
+UIFILES = $(wildcard GUI/windows/*.ui)
+PYFILES = $(wildcard GUI/pyUIClass/*.py) GUI/icons_rc.py
DIST = camp.tab.h camp.tab.cc lex.yy.cc runtime.cc keywords.cc \
asy-keywords.el $(RUNTIME_FILES:=.cc) $(RUNTIME_FILES:=.h) asy.list \
- $(SYMBOLSH)
+ $(SYMBOLSH) $(PYFILES)
NAME = asy
XNAME = x$(NAME)
-UIFILES = $(wildcard GUI/windows/*.ui)
CLEAN = camp.output base/version.asy doc/version.texi \
GUI/xasyVersion.py $(XNAME) doc/asy-latex.pdf $(SYMBOLSH)
EXTRA = asy-mode.el asy-init.el asy.vim asy_filetype.vim asy-kate.sh \
@@ -68,7 +69,6 @@ ASY = ./asy -dir base -config "" -render=0
DEFS = @DEFS@ @OPTIONS@ @PTHREAD_CFLAGS@ -DFFTWPP_SINGLE_THREAD
CFLAGS = @CFLAGS@
OPTS = $(DEFS) @CPPFLAGS@ @CXXFLAGS@ $(CFLAGS)
-INCL = -I. @INCL@
# Options for compiling the object files for the shared library.
# gc has to be configured with the option --disable-threads in order to make a
@@ -80,6 +80,8 @@ CXX = @CXX@ -Wall
CC = @CC@ -Wall
MAKEDEPEND = $(OPTS) -O0 -M -DDEPEND
BISON = bison
+PYRCC = pyrcc5
+PYUIC = pyuic5
LEX = @LEX@
prefix = @prefix@
@@ -91,6 +93,7 @@ infodir = $(DESTDIR)@infodir@
datadir = $(DESTDIR)@datadir@
asydir = $(datadir)/asymptote
GUIdir = $(asydir)/GUI
+shaderdir = $(asydir)/shaders
docdir = $(DESTDIR)@docdir@
exampledir = $(docdir)/examples
animationsdir = $(exampledir)/animations
@@ -110,7 +113,6 @@ endif
export prefix docdir exampledir mandir infodir INSTALL MAKE DESTDIR TEXI2DVI
asy: version
- -pyrcc5 GUI/res/icons.qrc -o GUI/icons_rc.py
if test -n "$(MSDOS)"; then \
$(CXX) $(OPTS) -o $(NAME) $(FILES:=.o) revision.o asy.o $(DOSLIBS); \
else \
@@ -118,11 +120,11 @@ asy: version
$(CXX) $(OPTS) -o $(NAME) $(FILES:=.o) revision.o $(LIBS); \
fi
-version: $(GCLIB) $(FILES:=.o) $(UIFILES:.ui=.py)
+version: $(GCLIB) $(FILES:=.o) $(notdir $(UIFILES:.ui=.py)) GUI/icons_rc.py
if test ! -s revision.cc -o "$(revision)" != "$(last)"; then \
echo $(REVISION)\"$(revision)\"\; > revision.cc; \
fi
- $(CXX) $(OPTS) $(INCL) -o revision.o -c revision.cc;
+ $(CXX) $(OPTS) -o revision.o -c revision.cc;
echo string VERSION=\"$(revision)\"\; > base/version.asy
echo @set VERSION $(revision) > doc/version.texi
@@ -189,17 +191,20 @@ $(RUNTIME_FILES:=.cc): %.cc: runtime.pl opsymbols.h runtimebase.in %.in
$(PERL) ./runtime.pl $(@:.cc=)
$(SYMBOL_FILES:=.symbols.h): %.symbols.h: findsym.pl %.cc
- $(CXX) -E -DNOSYM $(OPTS) $(INCL) $(@:.symbols.h=.cc) | \
+ $(CXX) -E -DNOSYM $(OPTS) $(@:.symbols.h=.cc) | \
$(PERL) ./findsym.pl $@ -
$(SYMBOL_FILES:=.o): %.o: %.symbols.h
allsymbols.h: findsym.pl $(SYMBOL_FILES:=.cc)
- $(CXX) -E -DNOSYM $(OPTS) $(INCL) $(SYMBOL_FILES:=.cc) | \
+ $(CXX) -E -DNOSYM $(OPTS) $(SYMBOL_FILES:=.cc) | \
$(PERL) ./findsym.pl $@ -
symbol.o: $(SYMBOLSH)
+GUI/icons_rc.py: GUI/res/icons.qrc
+ -$(PYRCC) GUI/res/icons.qrc -o GUI/icons_rc.py
+
camp.tab.cc: camp.y
$(BISON) -dvt -b camp camp.y && mv camp.tab.c camp.tab.cc
@@ -239,13 +244,14 @@ install-texhash: install-asy
install-asy: asy sty
${INSTALL} -d $(bindir) $(asydir) $(exampledir) $(animationsdir)
${INSTALL} -d $(GUIdir) $(GUIdir)/pyUIClass $(GUIdir)/configs \
- $(GUIdir)/res $(GUIdir)/res/icons
+ $(GUIdir)/res $(GUIdir)/res/icons $(shaderdir)
-${INSTALL} -d $(latexdir)
-${INSTALL} -d $(contextdir)
${INSTALL} -p -m 755 $(NAME) $(bindir)
${INSTALL} -p -m 644 base/*.asy $(addprefix base/,$(EXTRA)) \
asy-keywords.el $(asydir)
${INSTALL} -p -m 755 GUI/*.py $(GUIdir)
+ ${INSTALL} -p -m 755 base/shaders/*.glsl $(shaderdir)
${INSTALL} -p -m 644 GUI/pyUIClass/*.py $(GUIdir)/pyUIClass
${INSTALL} -p -m 644 GUI/configs/*.cson $(GUIdir)/configs
${INSTALL} -p -m 644 GUI/res/icons.qrc $(GUIdir)/res
@@ -279,6 +285,8 @@ uninstall-asy:
-rmdir $(exampledir)
-cd $(GUIdir) && rm -f *.py
-rmdir $(GUIdir)
+ -cd $(shaderdir) && rm -f *.glsl
+ -rmdir $(shaderdir)
-cd $(asydir) && rm -f asy-keywords.el *.asy $(EXTRA)
-rmdir $(asydir)
-cd $(latexdir) && rm -f $(LATEXFILES)
@@ -316,6 +324,7 @@ cleanest: FORCE maintainer-clean
maintainer-clean: FORCE distclean
-rm -f configure config.h.in $(DIST)
-rm -rf autom4te.cache
+ -rm -rf GUI/pyUIClass
test: asy FORCE
./wce
@@ -329,26 +338,26 @@ check-all: asy FORCE
.SUFFIXES: .c .cc .o .d .ui .py
%.o: %.cc
- $(CXX) $(OPTS) $(INCL) -o $@ -c $<
+ $(CXX) $(OPTS) -o $@ -c $<
%.d: %.cc
@echo Creating $@; \
rm -f $@; \
- ${CXX} $(MAKEDEPEND) $(INCL) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
+ ${CXX} $(MAKEDEPEND) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
sed 's,\($*\)\.o[ :]*,\1.o \1.pic.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.d: %.c
@echo Creating $@; \
rm -f $@; \
- ${CC} $(MAKEDEPEND) $(INCL) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
+ ${CC} $(MAKEDEPEND) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.py: %.ui
mkdir -p GUI/pyUIClass
- -pyuic5 -o GUI/pyUIClass/$(notdir $@) $<
+ -$(PYUIC) -o GUI/pyUIClass/$(notdir $@) $<
# Compile for the shared library. OpenGL must be disabled as it causes
# crashes inside a shared library.
%.pic.o: %.cc
- $(CXX) $(SHAREDOPTS) $(INCL) -o $@ -c $<
+ $(CXX) $(SHAREDOPTS) -o $@ -c $<
ifeq (,$(findstring clean,${MAKECMDGOALS}))
-include $(FILES:=.d)