-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile.am
executable file
·165 lines (139 loc) · 5.4 KB
/
Makefile.am
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# On debian-based systems this makes us use the right gcl version out-of-the box.
# On other systems it doesn't hurt.
export GCL_ANSI=t
if ENABLE_GETTEXT
LOCALE_DIR = locale
endif
if ENABLE_BUILD_DOCS
DOC_DIR = doc
endif
SUBDIRS = admin crosscompile-windows src lisp-utils $(DOC_DIR) interfaces share demo plotting desktopintegration $(LOCALE_DIR) tests
EXTRA_DIST = \
common.mk maxima.iss.in \
README-lisps.md README.rpms README.i18n README.external README.developers-howto \
INSTALL.win32 INSTALL.lisp INSTALL.git INSTALL.win32nogcl \
configure.lisp maxima-local.in xmaxima-local.in \
macosx/Makefile macosx/Readme.md macosx/maxima.sh macosx/script \
macosx/xmaxima.sh macosx/appIcon.icns macosx/How_to_install.rtf \
changelogs ChangeLog LICENSES/getopt-license.txt\
snap/snapcraft.yaml
include common.mk
extradocinstall:
test -d "$(DESTDIR)$(docdir)" || mkdir -p "$(DESTDIR)$(docdir)"
for file in AUTHORS COPYING INSTALL README README-lisps.md ; \
do \
$(INSTALL_DATA) $$file "$(DESTDIR)$(docdir)" ; \
done
$(distdir).tar.gz: Makefile.am
$(MAKE) dist
# windows installer rules
if WIN32
GNUPLOTDIR = "/c/programs/gnuplot"
WXMAXIMADIR = "/c/programs/wxMaxima"
# Install the gnuplot binary files
gnuplot:
mkdir -p $(prefix)/gnuplot
cp -rf $(GNUPLOTDIR) $(prefix)/
# Install wxMaxima
wxmaxima:
test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
cp -rf $(WXMAXIMADIR) $(prefix)/wxMaxima
cclcopy:
test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
cp "$(OPENMCL_NAME)" "$(prefix)/bin/"
sbclcopy:
test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
cp "$(SBCL_NAME)" "$(prefix)/bin/"
RUNTIMECOPY =
# Install files for lisp runtime support
if GCL
RUNTIMECOPY += gcccopy
endif
if OPENMCL
RUNTIMECOPY += cclcopy
endif
if SBCL
RUNTIMECOPY += sbclcopy
endif
# Install files for lisp runtime support
win32-lisp-runtime: $(RUNTIMECOPY)
MINGW=/mingw
if GCC331
GCCPREFIX=/usr/local
# Old gcc/mingw/msys install
gcccopy:
test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
test -d "$(prefix)/include" || mkdir -p "$(prefix)/include"
test -d "$(prefix)/include/sys" || mkdir -p "$(prefix)/include/sys"
test -d "$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include" \
|| mkdir -p "$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include"
cp $(GCCPREFIX)/bin/gcc.exe $(prefix)/bin
cp $(MINGW)/bin/mingwm10.dll $(prefix)/bin
cp $(MINGW)/bin/tclpip84.dll $(prefix)/bin
cp $(MINGW)/include/stdio.h $(prefix)/include
cp $(MINGW)/include/stdlib.h $(prefix)/include
cp $(MINGW)/include/setjmp.h $(prefix)/include
cp $(MINGW)/include/_mingw.h $(prefix)/include
cp $(MINGW)/include/math.h $(prefix)/include
cp $(MINGW)/include/unistd.h $(prefix)/include
cp $(MINGW)/include/io.h $(prefix)/include
cp $(MINGW)/include/process.h $(prefix)/include
cp $(MINGW)/include/getopt.h $(prefix)/include
cp $(MINGW)/include/stdint.h $(prefix)/include
cp $(MINGW)/include/sys/*.h $(prefix)/include/sys
cp $(MINGW)/include/varargs.h $(prefix)/include
cp $(MINGW)/include/stddef.h $(prefix)/include
cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/cc1.exe \
$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
cp $(MINGW)/bin/as.exe \
$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/specs \
$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)
cp $(GCCPREFIX)/lib/gcc-lib/mingw32/$(GCCVER)/include/*.h \
$(prefix)/lib/gcc-lib/mingw32/$(GCCVER)/include
else # GCC331
GCCPREFIX=$(MINGW)
# New (November 2013) gcc/mingw/msys install using gcc-4.8.1
gcccopy:
test -d "$(prefix)/bin" || mkdir -p "$(prefix)/bin"
test -d "$(prefix)/include" || mkdir -p "$(prefix)/include"
test -d "$(prefix)/include/sys" || mkdir -p "$(prefix)/include/sys"
test -d "$(prefix)/lib/gcc/mingw32/$(GCCVER)/include" \
|| mkdir -p "$(prefix)/lib/gcc/mingw32/$(GCCVER)/include"
test -d "$(prefix)/libexec/gcc/mingw32/$(GCCVER)" \
|| mkdir -p "$(prefix)/libexec/gcc/mingw32/$(GCCVER)"
cp $(GCCPREFIX)/bin/gcc.exe $(prefix)/bin
cp $(MINGW)/bin/mingwm10.dll $(prefix)/bin
cp $(GCCPREFIX)/bin/libgmp-10.dll $(prefix)/bin
cp $(GCCPREFIX)/bin/libmpc-3.dll $(prefix)/bin
cp $(GCCPREFIX)/bin/libmpfr-4.dll $(prefix)/bin
cp /c/tcl/bin/tclpip85.dll $(prefix)/bin
cp $(MINGW)/include/stdio.h $(prefix)/include
cp $(MINGW)/include/stdlib.h $(prefix)/include
cp $(MINGW)/include/setjmp.h $(prefix)/include
cp $(MINGW)/include/_mingw.h $(prefix)/include
cp $(MINGW)/include/math.h $(prefix)/include
cp $(MINGW)/include/unistd.h $(prefix)/include
cp $(MINGW)/include/io.h $(prefix)/include
cp $(MINGW)/include/process.h $(prefix)/include
cp $(MINGW)/include/getopt.h $(prefix)/include
cp $(MINGW)/include/stdint.h $(prefix)/include
cp $(MINGW)/include/sys/*.h $(prefix)/include/sys
cp $(GCCPREFIX)/libexec/gcc/mingw32/$(GCCVER)/cc1.exe \
$(prefix)/libexec/gcc/mingw32/$(GCCVER)
cp $(GCCPREFIX)/libexec/gcc/mingw32/$(GCCVER)/liblto_plugin-0.dll \
$(prefix)/libexec/gcc/mingw32/$(GCCVER)
cp $(MINGW)/bin/as.exe \
$(prefix)/libexec/gcc
cp $(GCCPREFIX)/lib/gcc/mingw32/$(GCCVER)/include/*.h \
$(prefix)/lib/gcc/mingw32/$(GCCVER)/include
endif # GCC331
iss: win32-lisp-runtime wxmaxima gnuplot extradocinstall
endif # WIN32
rpm: maxima.spec dist-gzip
rpmbuild -ba $(top_srcdir)/maxima.spec --define "_sourcedir $(abs_top_builddir)" --define "_rpmdir $(abs_top_builddir)"
rpmbuild -bb $(top_srcdir)/maxima.spec --define "_sourcedir $(abs_top_builddir)" --define "_rpmdir $(abs_top_builddir)"
clean-local:
rm -rf bin
rm -rf binary
check-local: all