comparison src/liboauth.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
16 endef 16 endef
17 17
18 define $(PKG)_BUILD 18 define $(PKG)_BUILD
19 cd '$(1)' && ./configure \ 19 cd '$(1)' && ./configure \
20 --host='$(TARGET)' \ 20 --host='$(TARGET)' \
21 --prefix='$(PREFIX)/$(TARGET)' \ 21 --prefix='$(HOST_PREFIX)' \
22 $(ENABLE_SHARED_OR_STATIC) \ 22 $(ENABLE_SHARED_OR_STATIC) \
23 --disable-curl 23 --disable-curl
24 $(MAKE) -C '$(1)' -j '$(JOBS)' 24 $(MAKE) -C '$(1)' -j '$(JOBS)'
25 $(MAKE) -C '$(1)' -j 1 install 25 $(MAKE) -C '$(1)' -j 1 install
26 26
27 '$(TARGET)-gcc' \ 27 '$(TARGET)-gcc' \
28 -W -Wall -Werror -ansi -pedantic \ 28 -W -Wall -Werror -ansi -pedantic \
29 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-liboauth.exe' \ 29 '$(2).c' -o '$(HOST_PREFIX)/bin/test-liboauth.exe' \
30 `'$(TARGET)-pkg-config' oauth --cflags --libs` 30 `'$(TARGET)-pkg-config' oauth --cflags --libs`
31 endef 31 endef