Mercurial > mxe-octave
comparison src/freeglut.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | 47558e958113 |
children | bcc26ffe9a0f |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
18 define $(PKG)_BUILD | 18 define $(PKG)_BUILD |
19 cd '$(1)' && ./autogen.sh | 19 cd '$(1)' && ./autogen.sh |
20 cd '$(1)' && ./configure \ | 20 cd '$(1)' && ./configure \ |
21 --host='$(TARGET)' \ | 21 --host='$(TARGET)' \ |
22 $(ENABLE_SHARED_OR_STATIC) \ | 22 $(ENABLE_SHARED_OR_STATIC) \ |
23 --prefix='$(PREFIX)/$(TARGET)' \ | 23 --prefix='$(HOST_PREFIX)' \ |
24 --enable-replace-glut \ | 24 --enable-replace-glut \ |
25 --disable-debug \ | 25 --disable-debug \ |
26 --without-progs \ | 26 --without-progs \ |
27 --without-x | 27 --without-x |
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= EXPORT_FLAGS='-DFREEGLUT_STATIC' | 28 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= EXPORT_FLAGS='-DFREEGLUT_STATIC' |
29 | 29 |
30 '$(TARGET)-gcc' \ | 30 '$(TARGET)-gcc' \ |
31 -W -Wall -Werror -ansi -pedantic \ | 31 -W -Wall -Werror -ansi -pedantic \ |
32 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-freeglut.exe' \ | 32 '$(2).c' -o '$(HOST_PREFIX)/bin/test-freeglut.exe' \ |
33 `'$(TARGET)-pkg-config' glut --cflags --libs` | 33 `'$(TARGET)-pkg-config' glut --cflags --libs` |
34 endef | 34 endef |