Skip to content
Snippets Groups Projects
Commit c572a227 authored by Julian Seward's avatar Julian Seward
Browse files

[project @ 2000-02-24 14:40:38 by sewardj]

Don't always use GMP from ghc/rts; instead consult HaveLibGmp first.
parent 3cb2eab4
No related branches found
No related tags found
No related merge requests found
# --------------------------------------------------------------------------- # # --------------------------------------------------------------------------- #
# $Id: Makefile,v 1.26 2000/02/24 13:58:56 sewardj Exp $ # # $Id: Makefile,v 1.27 2000/02/24 14:40:38 sewardj Exp $ #
# --------------------------------------------------------------------------- # # --------------------------------------------------------------------------- #
TOP = .. TOP = ..
...@@ -25,6 +25,12 @@ else ...@@ -25,6 +25,12 @@ else
LIB_READLINE= LIB_READLINE=
endif endif
ifeq "$(HaveLibGmp)$" "YES"
LIB_GMP=-lgmp
else
LIB_GMP=../rts/gmp/libgmp.a
endif
YACC = bison -y YACC = bison -y
%.c: %.y %.c: %.y
-$(YACC) $< -$(YACC) $<
...@@ -50,7 +56,7 @@ hugs: $(C_OBJS) ../rts/Sanity.o ../rts/Assembler.o ../rts/Disassembler.o \ ...@@ -50,7 +56,7 @@ hugs: $(C_OBJS) ../rts/Sanity.o ../rts/Assembler.o ../rts/Disassembler.o \
../rts/StgCRun.o ../rts/PrimOps.o ../rts/StgCRun.o ../rts/PrimOps.o
$(CC) -o $@ $(CC_OPTS) $^ $(GHC_LIBS_NEEDED) \ $(CC) -o $@ $(CC_OPTS) $^ $(GHC_LIBS_NEEDED) \
-lbfd -liberty $(LIB_READLINE) $(LIB_DL) \ -lbfd -liberty $(LIB_READLINE) $(LIB_DL) \
../rts/gmp/libgmp.a -lm $(LIB_GMP) -lm
foobar: foobar:
rm -f ../rts/libHSrts.a ../rts/libHSrts_u.a rm -f ../rts/libHSrts.a ../rts/libHSrts_u.a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment