Mercurial > mxe-octave
comparison src/bzip2.mk @ 3021:6ea3d6ad4f44
Update for build static compile option
* src/blas.mk: if BUILD_STATIC, install the static library.
* src/bzip2.mk: if BUILD_STATIC, install teh static library
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 08 Jun 2013 10:43:11 -0400 |
parents | b6c7244a2f66 |
children | 951da75fd09c |
comparison
equal
deleted
inserted
replaced
3020:41800279e33a | 3021:6ea3d6ad4f44 |
---|---|
29 $(INSTALL) -m644 '$(1)/bzlib.h' '$(HOST_INCDIR)' | 29 $(INSTALL) -m644 '$(1)/bzlib.h' '$(HOST_INCDIR)' |
30 | 30 |
31 if [ $(BUILD_SHARED) = yes ]; then \ | 31 if [ $(BUILD_SHARED) = yes ]; then \ |
32 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(1)/libbz2.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ | 32 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(1)/libbz2.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ |
33 fi | 33 fi |
34 | |
35 if [ $(BUILD_STATIC) = yes ]; then \ | |
36 $(INSTALL) '$(1)/libbz2.a' '$(HOST_LIBDIR)/'; \ | |
37 fi | |
34 endef | 38 endef |
35 else | 39 else |
36 define $(PKG)_BUILD | 40 define $(PKG)_BUILD |
37 $(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c' | 41 $(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c' |
38 $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' | 42 $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' |