Skip to content

Commit

Permalink
Fix up GMP_WRAPPER includes, etc...
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Aug 24, 2012
1 parent a81c9b7 commit a9d95e9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,16 @@ distclean-gmp:

## GMP Wrapper

GMP_INC = -I gmp-$(GMP_VER)/
GMP_LIB = -L$(USRLIB)/ -lgmp
ifeq ($(USE_SYSTEM_GMP), 1)
GMPW_INC =
GMPW_LIB = -lgmp
else
GMPW_INC = -I gmp-$(GMP_VER)/
GMPW_LIB = -L$(USRLIB)/ -lgmp
endif

$(USRLIB)/libgmp_wrapper.$(SHLIB_EXT): gmp_wrapper.c $(GMP_OBJ_TARGET) | $(USRLIB)
$(CC) $(CFLAGS) $(LDFLAGS) -O2 -shared $(fPIC) $(GMP_INC) gmp_wrapper.c -o $(USRLIB)/libgmp_wrapper.$(SHLIB_EXT) -Wl,-rpath,$(USRLIB) $(GMP_LIB)
$(CC) $(CFLAGS) $(LDFLAGS) -O2 -shared $(fPIC) $(GMPW_INC) gmp_wrapper.c -o $(USRLIB)/libgmp_wrapper.$(SHLIB_EXT) -Wl,-rpath,$(USRLIB) $(GMPW_LIB)
$(INSTALL_NAME_CMD)libgmp_wrapper.$(SHLIB_EXT) $@
touch $@
install-gmp-wrapper: $(USRLIB)/libgmp_wrapper.$(SHLIB_EXT)
Expand Down

0 comments on commit a9d95e9

Please sign in to comment.