Mercurial > mxe-octave
annotate src/itsol.mk @ 3806:4db51bcd2fa6
update octave.bmp for antialising artifacts
* installer-files/octave.bmp: updated image
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 18 Feb 2015 18:31:06 -0500 |
parents | 13be64f9f16d |
children | 0db33a326eec |
rev | line source |
---|---|
3104
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 PKG := itsol |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3104
diff
changeset
|
6 $(PKG)_VERSION := 2 |
3104
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := c7af215aaa6ab377521ba317eccf6859165ebefb |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := ITSOL_2 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := ITSOL_2.tar.gz |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_URL := http://www-users.cs.umn.edu/~saad/software/ITSOL/itsol.php |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_DEPS := blas |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
13 ifeq ($(ENABLE_64),yes) |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
14 $(PKG)_DEFAULT_INTEGER_8_FLAG := -fdefault-integer-8 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
15 endif |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 define $(PKG)_UPDATE |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 echo 1 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 endef |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 $(MAKE) -C '$(1)' -j '$(JOBS)' \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 FC='$(MXE_F77)' \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 FCFLAGS='-c -O3 $(MXE_F77_PICFLAG) $($(PKG)_DEFAULT_INTEGER_8_FLAG) -I./INC' \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 CC='$(MXE_CC)' \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 CCFLAGS='-c -O2 $(MXE_CC_PICFLAG) -I./INC -DLINUX' |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
28 if [ $(BUILD_SHARED) = yes ]; then \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
29 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/LIB/libitsol.a' \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
30 --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
31 -llapack -lblas; \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
32 fi |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
33 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 if [ $(BUILD_STATIC) = yes ]; then \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
35 $(INSTALL) -d '$(HOST_LIBDIR)'; \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
36 $(INSTALL) '$(1)/LIB/libitsol.a' '$(HOST_LIBDIR)/'; \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
37 fi |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
38 |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
39 $(INSTALL) -d '$(HOST_INCDIR)/itsol' |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
40 for incfile in $(1)/INC/*.h; do \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
41 $(INSTALL) "$$incfile" '$(HOST_INCDIR)/itsol/'; \ |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
42 done |
920e26e6c6a3
Add ITSOL package. Enable compilation with MSVC.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
43 endef |