Mercurial > mxe-octave
comparison src/protobuf.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 | 30b0ab7e6406 |
children | 100e618349f7 |
comparison
equal
deleted
inserted
replaced
2854:54522aaf400c | 2855:47558e958113 |
---|---|
16 endef | 16 endef |
17 | 17 |
18 define $(PKG)_BUILD | 18 define $(PKG)_BUILD |
19 # First step: Build for host system in order to create "protoc" binary. | 19 # First step: Build for host system in order to create "protoc" binary. |
20 cd '$(1)' && ./configure \ | 20 cd '$(1)' && ./configure \ |
21 --disable-shared | 21 $(ENABLE_SHARED_OR_STATIC) |
22 $(MAKE) -C '$(1)' -j '$(JOBS)' | 22 $(MAKE) -C '$(1)' -j '$(JOBS)' |
23 cp '$(1)/src/protoc' '$(1)/src/protoc_host' | 23 cp '$(1)/src/protoc' '$(1)/src/protoc_host' |
24 $(MAKE) -C '$(1)' -j 1 distclean | 24 $(MAKE) -C '$(1)' -j 1 distclean |
25 # Second step: Build for target system. | 25 # Second step: Build for target system. |
26 cd '$(1)' && ./configure \ | 26 cd '$(1)' && ./configure \ |
27 --host='$(TARGET)' \ | 27 --host='$(TARGET)' \ |
28 --prefix='$(PREFIX)/$(TARGET)' \ | 28 --prefix='$(PREFIX)/$(TARGET)' \ |
29 --disable-shared \ | 29 $(ENABLE_SHARED_OR_STATIC) \ |
30 --with-zlib \ | 30 --with-zlib \ |
31 --with-protoc=src/protoc_host | 31 --with-protoc=src/protoc_host |
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 | 34 |