[project @ 2000-01-18 15:59:53 by sewardj]
[ghc-hetmet.git] / ghc / interpreter / Makefile
index 4fcc0e8..e7b29bd 100644 (file)
@@ -1,6 +1,6 @@
 
 # --------------------------------------------------------------------------- #
-# $Id: Makefile,v 1.20 1999/11/22 16:44:32 sewardj Exp $                      #
+# $Id: Makefile,v 1.24 1999/12/20 16:55:26 sewardj Exp $                      #
 # --------------------------------------------------------------------------- #
 
 TOP = ..
@@ -20,7 +20,7 @@ LIB_DL=-ldl
 endif
 
 ifeq "$(HaveLibReadline)$" "YES"
-LIB_READLINE=-lreadline
+LIB_READLINE=-lreadline -ltermcap
 else
 LIB_READLINE=
 endif
@@ -36,22 +36,22 @@ HS_SRCS =
 Y_SRCS = parser.y
 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 interface.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
 
 GHC_LIBS_NEEDED = $(GHC_RUNTIME_DIR)/libHSrts.a
 
-all :: parser.c $(GHC_LIBS_NEEDED) nHandle.$(DYN_EXT) hugs
+all :: parser.c $(GHC_LIBS_NEEDED) nHandle$(DYN_EXT) hugs
 
 ### EXTREMELY hacky
 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/StgCRun.o
        $(CC) -o $@ $(CC_OPTS) $^ $(GHC_LIBS_NEEDED) \
-                -lbfd -liberty $(LIB_READLINE) $(LIB_DL) -lm
+                -lbfd -liberty $(LIB_READLINE) $(LIB_DL) -lgmp -lm
 
-nHandle.$(DYN_EXT): nHandle.c
+nHandle$(DYN_EXT): nHandle.c
 ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
        gcc -mno-cygwin -O -Wall -o nHandle.o -c nHandle.c
        dllwrap -mno-cygwin --target=i386-mingw32 -o nHandle.dll \
@@ -68,6 +68,9 @@ cleanish:
 rtsclean:
        (cd $(GHC_RUNTIME_DIR) ; make clean)
 
+binaries:
+       tar cvzf stghugs.tar.gz hugs$(exeext) nHandle$(DYN_EXT) lib/*lhs lib/Prelude.hs
+
 snapshot:
        /bin/rm -f snapshot.tar
        tar cvf snapshot.tar Makefile *.[chy] \