comparison src/sdl_sound.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
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 $(ENABLE_SHARED_OR_STATIC) \ 21 $(ENABLE_SHARED_OR_STATIC) \
22 --prefix='$(PREFIX)/$(TARGET)' \ 22 --prefix='$(HOST_PREFIX)' \
23 --with-sdl-prefix='$(PREFIX)/$(TARGET)' \ 23 --with-sdl-prefix='$(HOST_PREFIX)' \
24 --disable-sdltest \ 24 --disable-sdltest \
25 --enable-voc \ 25 --enable-voc \
26 --enable-wav \ 26 --enable-wav \
27 --enable-raw \ 27 --enable-raw \
28 --enable-aiff \ 28 --enable-aiff \
37 --enable-flac \ 37 --enable-flac \
38 --enable-speex \ 38 --enable-speex \
39 --disable-physfs \ 39 --disable-physfs \
40 --disable-altcvt \ 40 --disable-altcvt \
41 CFLAGS='-g -O2 -fno-inline' \ 41 CFLAGS='-g -O2 -fno-inline' \
42 LIBS="`'$(TARGET)-pkg-config' vorbisfile flac speex --libs` `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --libs`" 42 LIBS="`'$(TARGET)-pkg-config' vorbisfile flac speex --libs` `'$(HOST_PREFIX)/bin/libmikmod-config' --libs`"
43 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= 43 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
44 44
45 '$(TARGET)-gcc' \ 45 '$(TARGET)-gcc' \
46 -W -Wall -Werror -std=c99 -pedantic \ 46 -W -Wall -Werror -std=c99 -pedantic \
47 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_sound.exe' \ 47 '$(2).c' -o '$(HOST_PREFIX)/bin/test-sdl_sound.exe' \
48 -lSDL_sound \ 48 -lSDL_sound \
49 `'$(TARGET)-pkg-config' sdl vorbisfile flac speex --cflags --libs` \ 49 `'$(TARGET)-pkg-config' sdl vorbisfile flac speex --cflags --libs` \
50 `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --cflags --libs` 50 `'$(HOST_PREFIX)/bin/libmikmod-config' --cflags --libs`
51 endef 51 endef