comparison src/protobuf.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
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='$(HOST_PREFIX)' \
29 $(ENABLE_SHARED_OR_STATIC) \ 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
35 '$(TARGET)-g++' \ 35 '$(TARGET)-g++' \
36 -W -Wall -Werror -ansi -pedantic \ 36 -W -Wall -Werror -ansi -pedantic \
37 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-protobuf.exe' \ 37 '$(2).cpp' -o '$(HOST_PREFIX)/bin/test-protobuf.exe' \
38 `'$(TARGET)-pkg-config' protobuf --cflags --libs` 38 `'$(TARGET)-pkg-config' protobuf --cflags --libs`
39 endef 39 endef