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"
--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 .
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
endif # Windows
+headerdir = $(libdir)/include
+
# Default place for putting interface files is $(libdir)
# (overriden for packages in package.mk)
ifacedir = $(libdir)
INSTALL_SCRIPT = $(INSTALL) -m 755
INSTALL_SHLIB = $(INSTALL) -m 755
INSTALL_DATA = $(INSTALL) -m 644
+INSTALL_HEADER = $(INSTALL) -m 644
INSTALL_MAN = $(INSTALL) -m 644
INSTALL_DIR = $(MKDIRHIER)
done
endif
+ifneq "$(strip $(INSTALL_HEADERS))" ""
+install:: $(INSTALL_HEADERS)
+ @$(INSTALL_DIR) $(headerdir)
+ for i in $(INSTALL_HEADERS); do \
+ $(INSTALL_HEADER) $(INSTALL_OPTS) $$i $(headerdir); \
+ done
+endif
+
ifneq "$(strip $(INSTALL_IFACES))" ""
install:: $(INSTALL_IFACES)
@$(INSTALL_DIR) $(ifacedir)