annotate src/llvm.mk @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents 4d0f3a9da57e
children dabfd7db980c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2329
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
2126
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
3
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
4 PKG := llvm
2329
466e77a78672 Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents: 2166
diff changeset
5 $(PKG)_IGNORE :=
2163
48db4bc35a28 update package llvm
Tony Theodore <tonyt@logyst.com>
parents: 2129
diff changeset
6 $(PKG)_CHECKSUM := b683e7294fcf69887c0d709025d4640f5dca755b
48db4bc35a28 update package llvm
Tony Theodore <tonyt@logyst.com>
parents: 2129
diff changeset
7 $(PKG)_SUBDIR := llvm-$($(PKG)_VERSION).src
48db4bc35a28 update package llvm
Tony Theodore <tonyt@logyst.com>
parents: 2129
diff changeset
8 $(PKG)_FILE := llvm-$($(PKG)_VERSION).tar.gz
2126
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
9 $(PKG)_URL := http://llvm.org/releases/$($(PKG)_VERSION)/$($(PKG)_FILE)
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
11
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://llvm.org/releases/download.html' | \
2127
c249980b95df package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents: 2126
diff changeset
14 grep 'Download LLVM' | \
c249980b95df package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents: 2126
diff changeset
15 $(SED) -n 's,.*\([0-9]\.[0-9]\).*,\1,p' | \
c249980b95df package llvm: add update script and ignore v2.9
Tony Theodore <tonyt@logyst.com>
parents: 2126
diff changeset
16 head -1
2126
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
17 endef
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
18
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
19 define $(PKG)_BUILD
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
20 mkdir '$(1)/build'
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
21 cd '$(1)/build' && cmake .. \
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
22 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
2129
2373562288ba package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents: 2127
diff changeset
23 -DLIBTYPE=STATIC \
2373562288ba package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents: 2127
diff changeset
24 -DLLVM_TARGETS_TO_BUILD="X86;" \
2373562288ba package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents: 2127
diff changeset
25 -DLLVM_BUILD_TOOLS=OFF
2166
1b0d2421cb80 package llvm: re-enable parallel build
Tony Theodore <tonyt@logyst.com>
parents: 2165
diff changeset
26 $(MAKE) -C '$(1)/build' -j $(JOBS) llvm-tblgen
1b0d2421cb80 package llvm: re-enable parallel build
Tony Theodore <tonyt@logyst.com>
parents: 2165
diff changeset
27 $(MAKE) -C '$(1)/build' -j $(JOBS) intrinsics_gen
1b0d2421cb80 package llvm: re-enable parallel build
Tony Theodore <tonyt@logyst.com>
parents: 2165
diff changeset
28 $(MAKE) -C '$(1)/build' -j $(JOBS) install
2129
2373562288ba package llvm: disable unnecessary components and targets
Tony Theodore <tonyt@logyst.com>
parents: 2127
diff changeset
29 ln -sf '$(PREFIX)/$(TARGET)/bin/llvm-config' '$(PREFIX)/bin/$(TARGET)-llvm-config'
2126
18dc5e1dee6f new packages: libxml++ and llvm
Matthias Gehre <M.Gehre@gmx.de>
parents:
diff changeset
30 endef