Mercurial > mxe-octave
comparison src/mingw-utils.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
comparison
equal
deleted
inserted
replaced
2854:54522aaf400c | 2855:47558e958113 |
---|---|
17 | 17 |
18 define $(PKG)_BUILD | 18 define $(PKG)_BUILD |
19 # native build | 19 # native build |
20 cp -Rp '$(1)' '$(1).native' | 20 cp -Rp '$(1)' '$(1).native' |
21 cd '$(1).native' && ./configure \ | 21 cd '$(1).native' && ./configure \ |
22 --disable-shared \ | 22 $(ENABLE_SHARED_OR_STATIC) \ |
23 --prefix='$(PREFIX)' | 23 --prefix='$(PREFIX)' |
24 $(MAKE) -C '$(1).native/reimp' -j '$(JOBS)' | 24 $(MAKE) -C '$(1).native/reimp' -j '$(JOBS)' |
25 $(INSTALL) -m755 '$(1).native/reimp/reimp' '$(PREFIX)/bin/$(TARGET)-reimp' | 25 $(INSTALL) -m755 '$(1).native/reimp/reimp' '$(PREFIX)/bin/$(TARGET)-reimp' |
26 | 26 |
27 # cross build | 27 # cross build |
28 cd '$(1)' && ./configure \ | 28 cd '$(1)' && ./configure \ |
29 --host='$(TARGET)' \ | 29 --host='$(TARGET)' \ |
30 --disable-shared \ | 30 $(ENABLE_SHARED_OR_STATIC) \ |
31 --prefix='$(PREFIX)/$(TARGET)' | 31 --prefix='$(PREFIX)/$(TARGET)' |
32 $(MAKE) -C '$(1)' -j '$(JOBS)' | 32 $(MAKE) -C '$(1)' -j '$(JOBS)' |
33 $(MAKE) -C '$(1)' -j 1 install | 33 $(MAKE) -C '$(1)' -j 1 install |
34 endef | 34 endef |