5 SUBDIRS = admin crosscompile-windows src lisp-utils tests doc interfaces share demo plotting $(LOCALE_DIR)
8 common.mk maxima.iss.in x-mac.xml\
9 README.lisps README.rpms README.i18n README.external \
10 INSTALL.win32 INSTALL.lisp \
11 configure.lisp maxima-local.in xmaxima-local.in \
12 macosx/Makefile macosx/Readme.txt macosx/maxima.sh macosx/script \
13 macosx/xmaxima.sh macosx/appIcon.icns \
14 ChangeLog-5.9.2 ChangeLog-5.9.3 ChangeLog-5.10.0 ChangeLog-5.11.0 \
15 ChangeLog-5.12.0 ChangeLog-5.13.0 ChangeLog-5.14.0 ChangeLog-5.15.0 \
16 ChangeLog-5.16 ChangeLog-5.17 ChangeLog-5.17-special-functions \
17 ChangeLog-5.18 ChangeLog-5.19 ChangeLog-5.20 ChangeLog-5.21 ChangeLog-5.22 \
18 ChangeLog-5.23 ChangeLog-5.24 ChangeLog-5.25 ChangeLog-5.26 ChangeLog-5.27 \
19 ChangeLog-5.28 ChangeLog-5.29 ChangeLog-5.30 ChangeLog-5.31 ChangeLog-5.32 \
20 ChangeLog-5.33 ChangeLog-5.34 ChangeLog-5.35 ChangeLog-5.36.md
25 test -d "$(DESTDIR)$(docdir)" || mkdir -p "$(DESTDIR)$(docdir)"
26 for file in AUTHORS COPYING INSTALL README README.lisps ; \
28 $(INSTALL_DATA) $$file "$(DESTDIR)$(docdir)" ; \
31 $(distdir).tar.gz: Makefile.am
34 # Build the Maxima rpms. Optionally, use
36 # to use sudo to wrap the commands. The user must have sudo permissions
38 rpm: $(distdir).tar.gz
39 $(SUDO) cp $(distdir).tar.gz /usr/src/redhat/SOURCES && \
40 $(SUDO) rpmbuild -ba maxima.spec
42 # windows installer rules
45 GNUPLOTDIR = "/c/programs/gnuplot"
46 WXMAXIMADIR = "/c/programs/wxMaxima"
48 # Install the gnuplot binary files
50 mkdir -p $(prefix)/gnuplot
51 cp -rf $(GNUPLOTDIR) $(prefix)/
55 test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
56 cp -rf $(WXMAXIMADIR) $(prefix)/wxMaxima
59 test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
60 cp "$(OPENMCL_NAME)" "$(prefix)/bin/"
63 test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
64 cp "$(SBCL_NAME)" "$(prefix)/bin/"
67 # Install files for lisp runtime support
69 RUNTIMECOPY += gcccopy
73 RUNTIMECOPY += cclcopy
77 RUNTIMECOPY += sbclcopy
80 # Install files for lisp runtime support
81 win32-lisp-runtime: $(RUNTIMECOPY)
86 # Old gcc/mingw/msys install
88 test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
89 test -d "$(prefix)/include" || mkdir -p "$(prefix)/include"
90 test -d "$(prefix)/include/sys" || mkdir -p "$(prefix)/include/sys"
91 test -d "$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include" \
92 || mkdir -p "$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include"
93 cp $(GCCPREFIX)/bin/gcc.exe $(prefix)/bin
94 cp $(MINGW)/bin/mingwm10.dll $(prefix)/bin
95 cp $(MINGW)/bin/tclpip84.dll $(prefix)/bin
96 cp $(MINGW)/include/stdio.h $(prefix)/include
97 cp $(MINGW)/include/stdlib.h $(prefix)/include
98 cp $(MINGW)/include/setjmp.h $(prefix)/include
99 cp $(MINGW)/include/_mingw.h $(prefix)/include
100 cp $(MINGW)/include/math.h $(prefix)/include
101 cp $(MINGW)/include/unistd.h $(prefix)/include
102 cp $(MINGW)/include/io.h $(prefix)/include
103 cp $(MINGW)/include/process.h $(prefix)/include
104 cp $(MINGW)/include/getopt.h $(prefix)/include
105 cp $(MINGW)/include/stdint.h $(prefix)/include
106 cp $(MINGW)/include/sys/*.h $(prefix)/include/sys
107 cp $(MINGW)/include/varargs.h $(prefix)/include
108 cp $(MINGW)/include/stddef.h $(prefix)/include
109 cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/cc1.exe \
110 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
111 cp $(MINGW)/bin/as.exe \
112 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
113 cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/specs \
114 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
115 cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/include/*.h \
116 $(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include
121 # New (November 2013) gcc/mingw/msys install using gcc-4.8.1
123 test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
124 test -d "$(prefix)/include" || mkdir -p "$(prefix)/include"
125 test -d "$(prefix)/include/sys" || mkdir -p "$(prefix)/include/sys"
126 test -d "$(prefix)/lib/gcc/mingw32/$(GCCVER)/include" \
127 || mkdir -p "$(prefix)/lib/gcc/mingw32/$(GCCVER)/include"
128 test -d "$(prefix)/libexec/gcc/mingw32/$(GCCVER)" \
129 || mkdir -p "$(prefix)/libexec/gcc/mingw32/$(GCCVER)"
130 cp $(GCCPREFIX)/bin/gcc.exe $(prefix)/bin
131 cp $(MINGW)/bin/mingwm10.dll $(prefix)/bin
132 cp $(GCCPREFIX)/bin/libgmp-10.dll $(prefix)/bin
133 cp $(GCCPREFIX)/bin/libmpc-3.dll $(prefix)/bin
134 cp $(GCCPREFIX)/bin/libmpfr-4.dll $(prefix)/bin
135 cp /c/tcl/bin/tclpip85.dll $(prefix)/bin
136 cp $(MINGW)/include/stdio.h $(prefix)/include
137 cp $(MINGW)/include/stdlib.h $(prefix)/include
138 cp $(MINGW)/include/setjmp.h $(prefix)/include
139 cp $(MINGW)/include/_mingw.h $(prefix)/include
140 cp $(MINGW)/include/math.h $(prefix)/include
141 cp $(MINGW)/include/unistd.h $(prefix)/include
142 cp $(MINGW)/include/io.h $(prefix)/include
143 cp $(MINGW)/include/process.h $(prefix)/include
144 cp $(MINGW)/include/getopt.h $(prefix)/include
145 cp $(MINGW)/include/stdint.h $(prefix)/include
146 cp $(MINGW)/include/sys/*.h $(prefix)/include/sys
147 cp $(GCCPREFIX)/libexec/gcc/mingw32/$(GCCVER)/cc1.exe \
148 $(prefix)/libexec/gcc/mingw32/$(GCCVER)
149 cp $(GCCPREFIX)/libexec/gcc/mingw32/$(GCCVER)/liblto_plugin-0.dll \
150 $(prefix)/libexec/gcc/mingw32/$(GCCVER)
151 cp $(MINGW)/bin/as.exe \
152 $(prefix)/libexec/gcc
153 cp $(GCCPREFIX)/lib/gcc/mingw32/$(GCCVER)/include/*.h \
154 $(prefix)/lib/gcc/mingw32/$(GCCVER)/include
158 iss: win32-lisp-runtime wxmaxima gnuplot extradocinstall
162 mimedatadir = $(datarootdir)/mime/packages
163 dist_mimedata_DATA = x-mac.xml