Skip to content

Commit

Permalink
Tidy up the gmp/ Makefile a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Aug 28, 2007
1 parent 3240dc3 commit 83a8c81
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions gmp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ include $(TOP)/mk/boilerplate.mk
ifneq "$(HaveLibGmp)" "YES"
ifneq "$(HaveFrameworkGMP)" "YES"

boot :: stamp.gmp.static

PLATFORM := $(shell echo $(HOSTPLATFORM) | sed 's/i[567]86/i486/g')

# 2007-07-05
Expand Down Expand Up @@ -41,6 +39,19 @@ else
BUILD_SHARED=no
endif

boot :: stamp.gmp.static
all :: libgmp.a
install :: libgmp.a
INSTALL_LIBS += libgmp.a

ifeq "$(BUILD_SHARED)" "yes"
boot :: stamp.gmp.shared
all :: libgmp-3.dll libgmp.dll.a
install :: libgmp-3.dll libgmp.dll.a
INSTALL_LIBS += libgmp.dll.a
INSTALL_PROGS += libgmp-3.dll
endif

stamp.gmp.static:
$(RM) -rf $(GMP_DIR) gmpbuild
$(TAR) -zxf $(GMP_TARBALL)
Expand Down Expand Up @@ -70,27 +81,12 @@ libgmp.a: stamp.gmp.static
$(CP) gmpbuild/.libs/libgmp.a .
$(RANLIB) libgmp.a

all :: libgmp.a

install :: libgmp.a

INSTALL_LIBS += libgmp.a

ifeq "$(BUILD_SHARED)" "yes"
libgmp-3.dll: stamp.gmp.shared
$(MAKE) -C gmpbuild-shared MAKEFLAGS=
$(CP) gmpbuild-shared/.libs/libgmp-3.dll .

libgmp.dll.a: libgmp-3.dll
$(CP) gmpbuild-shared/.libs/libgmp.dll.a .

all :: libgmp-3.dll libgmp.dll.a

install :: libgmp-3.dll libgmp.dll.a

INSTALL_LIBS += libgmp.dll.a
INSTALL_PROGS += libgmp-3.dll
endif
endif
endif

Expand Down

0 comments on commit 83a8c81

Please sign in to comment.