diff options
author | Ian Lynagh <igloo@earth.li> | 2007-08-28 12:47:59 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-08-28 12:47:59 +0000 |
commit | 18e4fea8fcd804d0f164d06aec9f96bb9435a338 (patch) | |
tree | d7474226fc6d65d1a30ff49887fb32b89d5a7fb7 /gmp | |
parent | 83a8c81a9c000da9bbef3b91572b1820c55ccc19 (diff) | |
download | haskell-18e4fea8fcd804d0f164d06aec9f96bb9435a338.tar.gz |
Make some header-installing machinery, and use it to install gmp.h
Diffstat (limited to 'gmp')
-rw-r--r-- | gmp/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gmp/Makefile b/gmp/Makefile index f09c52384f..82de987dad 100644 --- a/gmp/Makefile +++ b/gmp/Makefile @@ -40,8 +40,9 @@ BUILD_SHARED=no endif boot :: stamp.gmp.static -all :: libgmp.a -install :: libgmp.a +all :: gmp.h libgmp.a +install :: gmp.h libgmp.a +INSTALL_HEADERS += gmp.h INSTALL_LIBS += libgmp.a ifeq "$(BUILD_SHARED)" "yes" @@ -76,6 +77,9 @@ stamp.gmp.shared: --enable-shared=yes --disable-static --host=$(PLATFORM) --build=$(PLATFORM) touch $@ +gmp.h: stamp.gmp.static + $(CP) gmpbuild/gmp.h . + libgmp.a: stamp.gmp.static $(MAKE) -C gmpbuild MAKEFLAGS= $(CP) gmpbuild/.libs/libgmp.a . @@ -114,6 +118,9 @@ endif ifneq "$(INSTALL_LIBS)" "" $(INSTALL_DATA) $(INSTALL_LIBS) $(BIN_DIST_DIR)/gmp/ endif +ifneq "$(INSTALL_HEADERS)" "" + $(INSTALL_HEADER) $(INSTALL_HEADERS) $(BIN_DIST_DIR)/gmp/ +endif endif endif |