Mercurial > hg > mxe-octave-anirudha
changeset 2859:a952c6e14c28
Generate shared libraries for pdcurses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 16 Nov 2012 11:19:09 -0500 |
parents | 7c6b29399d05 |
children | c2976176699e |
files | src/pdcurses.mk |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pdcurses.mk +++ b/src/pdcurses.mk @@ -26,9 +26,20 @@ UTF8=Y mv '$(1)/pdcurses.a' '$(1)/libcurses.a' $(TARGET)-ranlib '$(1)/libcurses.a' '$(1)/panel.a' + if [ "$(BUILD_SHARED)" = yes ]; then \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(1)/libcurses.a'; \ + $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(1)/panel.a'; \ + fi $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -m644 '$(1)/curses.h' '$(1)/panel.h' '$(1)/term.h' '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/' $(INSTALL) -m644 '$(1)/libcurses.a' '$(PREFIX)/$(TARGET)/lib/libcurses.a' $(INSTALL) -m644 '$(1)/panel.a' '$(PREFIX)/$(TARGET)/lib/libpanel.a' + if [ "$(BUILD_SHARED)" = yes ]; then \ + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin/'; \ + $(INSTALL) -m644 '$(1)/libcurses.dll.a' '$(PREFIX)/$(TARGET)/lib/libcurses.dll.a'; \ + $(INSTALL) -m644 '$(1)/panel.dll.a' '$(PREFIX)/$(TARGET)/lib/libpanel.dll.a'; \ + $(INSTALL) -m644 '$(1)/libcurses.dll' '$(PREFIX)/$(TARGET)/bin/libcurses.dll'; \ + $(INSTALL) -m644 '$(1)/panel.dll' '$(PREFIX)/$(TARGET)/bin/libpanel.dll'; \ + fi endef