Mercurial > mxe-octave
comparison src/qdbm.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 | e7c40b6c3e66 |
children | bcc26ffe9a0f |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
17 endef | 17 endef |
18 | 18 |
19 define $(PKG)_BUILD | 19 define $(PKG)_BUILD |
20 cd '$(1)' && ./configure \ | 20 cd '$(1)' && ./configure \ |
21 --host='$(TARGET)' \ | 21 --host='$(TARGET)' \ |
22 --prefix='$(PREFIX)/$(TARGET)' \ | 22 --prefix='$(HOST_PREFIX)' \ |
23 --enable-lzo \ | 23 --enable-lzo \ |
24 --enable-bzip \ | 24 --enable-bzip \ |
25 --enable-zlib \ | 25 --enable-zlib \ |
26 --enable-iconv | 26 --enable-iconv |
27 $(MAKE) -C '$(1)' -j '$(JOBS)' \ | 27 $(MAKE) -C '$(1)' -j '$(JOBS)' \ |
28 static \ | 28 static \ |
29 MYBINS= \ | 29 MYBINS= \ |
30 MYLIBS=libqdbm.a \ | 30 MYLIBS=libqdbm.a \ |
31 AR=i686-pc-mingw32-ar \ | 31 AR=i686-pc-mingw32-ar \ |
32 RANLIB=i686-pc-mingw32-ranlib | 32 RANLIB=i686-pc-mingw32-ranlib |
33 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' | 33 $(INSTALL) -d '$(HOST_PREFIX)/lib/pkgconfig' |
34 $(INSTALL) -m644 '$(1)/libqdbm.a' '$(PREFIX)/$(TARGET)/lib/' | 34 $(INSTALL) -m644 '$(1)/libqdbm.a' '$(HOST_PREFIX)/lib/' |
35 $(INSTALL) -m644 '$(1)/qdbm.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/' | 35 $(INSTALL) -m644 '$(1)/qdbm.pc' '$(HOST_PREFIX)/lib/pkgconfig/' |
36 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' | 36 $(INSTALL) -d '$(HOST_PREFIX)/include' |
37 cd '$(1)' && $(INSTALL) -m644 depot.h curia.h relic.h hovel.h \ | 37 cd '$(1)' && $(INSTALL) -m644 depot.h curia.h relic.h hovel.h \ |
38 cabin.h villa.h vista.h odeum.h '$(PREFIX)/$(TARGET)/include/' | 38 cabin.h villa.h vista.h odeum.h '$(HOST_PREFIX)/include/' |
39 | 39 |
40 '$(TARGET)-gcc' \ | 40 '$(TARGET)-gcc' \ |
41 -W -Wall -Werror -ansi -pedantic \ | 41 -W -Wall -Werror -ansi -pedantic \ |
42 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-qdbm.exe' \ | 42 '$(2).c' -o '$(HOST_PREFIX)/bin/test-qdbm.exe' \ |
43 `'$(TARGET)-pkg-config' qdbm --cflags --libs` | 43 `'$(TARGET)-pkg-config' qdbm --cflags --libs` |
44 endef | 44 endef |