comparison src/qhull.mk @ 2897:81e4b37912bf stable

build shared libs from static for qhull
author John W. Eaton <jwe@octave.org>
date Tue, 04 Dec 2012 10:47:21 -0500
parents 152e3e693568
children 71294b7ce782
comparison
equal deleted inserted replaced
2895:790a09af0245 2897:81e4b37912bf
18 # build GCC and support libraries 18 # build GCC and support libraries
19 mkdir '$(1)/.build' 19 mkdir '$(1)/.build'
20 cd '$(1)/.build' && '$(1)/configure' \ 20 cd '$(1)/.build' && '$(1)/configure' \
21 --host='$(TARGET)' \ 21 --host='$(TARGET)' \
22 --build="`config.guess`" \ 22 --build="`config.guess`" \
23 $(ENABLE_SHARED_DISABLE_STATIC) \ 23 --enable-static --disable-shared \
24 --prefix='$(PREFIX)/$(TARGET)' 24 --prefix='$(PREFIX)/$(TARGET)'
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install 25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
26 26
27 rm -f $(PREFIX)/$(TARGET)/lib/libqhull.la 27 if [ $(BUILD_SHARED) = yes ]; then \
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \
29 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-g++' '$(PREFIX)/$(TARGET)/lib/libqhull.a'; \
30 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a' '$(PREFIX)/$(TARGET)/lib/libqhull.dll.a'; \
31 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libqhull.dll' '$(PREFIX)/$(TARGET)/bin/libqhull.dll'; \
32 rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.dll'; \
33 rm -f '$(PREFIX)/$(TARGET)/lib/libqhull.la'; \
34 fi
28 endef 35 endef