projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2000-04-11 16:49:20 by sewardj]
[ghc-hetmet.git]
/
ghc
/
interpreter
/
Makefile
diff --git
a/ghc/interpreter/Makefile
b/ghc/interpreter/Makefile
index
e7b29bd
..
6199e64
100644
(file)
--- a/
ghc/interpreter/Makefile
+++ b/
ghc/interpreter/Makefile
@@
-1,6
+1,6
@@
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
-# $Id: Makefile,v 1.24 1999/12/20 16:55:26 sewardj Exp $ #
+# $Id: Makefile,v 1.30 2000/04/03 17:27:10 sewardj Exp $ #
# --------------------------------------------------------------------------- #
TOP = ..
# --------------------------------------------------------------------------- #
TOP = ..
@@
-25,6
+25,12
@@
else
LIB_READLINE=
endif
LIB_READLINE=
endif
+ifeq "$(HaveLibGmp)$" "YES"
+LIB_GMP=-lgmp
+else
+LIB_GMP=../rts/gmp/libgmp.a
+endif
+
YACC = bison -y
%.c: %.y
-$(YACC) $<
YACC = bison -y
%.c: %.y
-$(YACC) $<
@@
-38,18
+44,24
@@
C_SRCS = link.c type.c static.c storage.c derive.c input.c compiler.c subst.c \
translate.c codegen.c lift.c free.c stgSubst.c output.c \
hugs.c dynamic.c stg.c sainteger.c object.c interface.c
translate.c codegen.c lift.c free.c stgSubst.c output.c \
hugs.c dynamic.c stg.c sainteger.c object.c interface.c
-SRC_CC_OPTS = -g -O -I$(GHC_INTERPRETER_DIR) -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) -D__HUGS__ -DCOMPILING_RTS -Wall -Wstrict-prototypes -Wno-unused -DDEBUG -Winline
+SRC_CC_OPTS = -g -I$(GHC_INTERPRETER_DIR) -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR) -D__HUGS__ -DCOMPILING_RTS -Wall -Wstrict-prototypes -Wno-unused -DDEBUG -Winline
GHC_LIBS_NEEDED = $(GHC_RUNTIME_DIR)/libHSrts.a
all :: parser.c $(GHC_LIBS_NEEDED) nHandle$(DYN_EXT) hugs
### EXTREMELY hacky
GHC_LIBS_NEEDED = $(GHC_RUNTIME_DIR)/libHSrts.a
all :: parser.c $(GHC_LIBS_NEEDED) nHandle$(DYN_EXT) hugs
### EXTREMELY hacky
-hugs: $(C_OBJS) ../rts/Sanity.o ../rts/Assembler.o ../rts/Disassembler.o \
+hugs: $(C_OBJS) ../rts/Sanity.o ../rts/Assembler.o ../rts/Disassembler.o \
../rts/Evaluator.o ../rts/ForeignCall.o ../rts/GC.o ../rts/Printer.o \
../rts/Evaluator.o ../rts/ForeignCall.o ../rts/GC.o ../rts/Printer.o \
- ../rts/StgCRun.o
+ ../rts/StgCRun.o ../rts/PrimOps.o ../rts/Prelude.o ../rts/libHSrts.a
$(CC) -o $@ $(CC_OPTS) $^ $(GHC_LIBS_NEEDED) \
$(CC) -o $@ $(CC_OPTS) $^ $(GHC_LIBS_NEEDED) \
- -lbfd -liberty $(LIB_READLINE) $(LIB_DL) -lgmp -lm
+ -lbfd -liberty $(LIB_READLINE) $(LIB_DL) \
+ $(LIB_GMP) -lm
+
+foobar:
+ rm -f ../rts/libHSrts.a ../rts/libHSrts_u.a
+ rm -f ../rts/StgCRun.o ../rts/StgCRun.u_o
+ make all
nHandle$(DYN_EXT): nHandle.c
ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
nHandle$(DYN_EXT): nHandle.c
ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"