Mercurial > mxe-octave
comparison src/opencsg.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 | 4d0f3a9da57e |
children | b6c7244a2f66 |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
17 endef | 17 endef |
18 | 18 |
19 define $(PKG)_BUILD | 19 define $(PKG)_BUILD |
20 cd '$(1)/src' && '$(TARGET)-qmake' src.pro | 20 cd '$(1)/src' && '$(TARGET)-qmake' src.pro |
21 $(MAKE) -C '$(1)/src' -j '$(JOBS)' | 21 $(MAKE) -C '$(1)/src' -j '$(JOBS)' |
22 $(INSTALL) -m644 '$(1)/include/opencsg.h' '$(PREFIX)/$(TARGET)/include/' | 22 $(INSTALL) -m644 '$(1)/include/opencsg.h' '$(HOST_PREFIX)/include/' |
23 $(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(PREFIX)/$(TARGET)/lib/' | 23 $(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(HOST_PREFIX)/lib/' |
24 | 24 |
25 cd '$(1)/example' && '$(TARGET)-qmake' example.pro | 25 cd '$(1)/example' && '$(TARGET)-qmake' example.pro |
26 $(MAKE) -C '$(1)/example' -j '$(JOBS)' | 26 $(MAKE) -C '$(1)/example' -j '$(JOBS)' |
27 $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(PREFIX)/$(TARGET)/bin/test-opencsg.exe' | 27 $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(HOST_PREFIX)/bin/test-opencsg.exe' |
28 endef | 28 endef |