From: sewardj Date: Fri, 29 Oct 1999 14:33:57 +0000 (+0000) Subject: [project @ 1999-10-29 14:33:57 by sewardj] X-Git-Tag: Approximately_9120_patches~5636 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0d6f3ef3e9cc75264072788fed2cc3ae913e852f;p=ghc-hetmet.git [project @ 1999-10-29 14:33:57 by sewardj] portability wibble --- diff --git a/ghc/interpreter/Makefile b/ghc/interpreter/Makefile index 5760fde..b0059f2 100644 --- a/ghc/interpreter/Makefile +++ b/ghc/interpreter/Makefile @@ -1,6 +1,6 @@ # ----------------------------------------------------------------------------- # -# $Id: Makefile,v 1.13 1999/10/29 13:41:23 sewardj Exp $ # +# $Id: Makefile,v 1.14 1999/10/29 14:33:57 sewardj Exp $ # # ----------------------------------------------------------------------------- # TOP = ../.. @@ -15,10 +15,10 @@ RTS_DIR = $(TOP)/ghc/rts ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32" DYN_EXT=.dll -MNO_CYGWIN= +LIB_DL= else DYN_EXT=.so -MNO_CYGWIN= +LIB_DL=-ldl endif YACC = bison -y @@ -35,7 +35,7 @@ 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 optimise.c output.c \ hugs.c dynamic.c stg.c sainteger.c interface.c -SRC_CC_OPTS = $(MNO_CYGWIN) -g -O -I$(GHC_DIR)/interpreter -I$(GHC_DIR)/includes -I$(GHC_DIR)/rts -D__HUGS__ -DCOMPILING_RTS -Wall -Wstrict-prototypes -Wno-unused -DDEBUG -DDEBUG_EXTRA -Winline +SRC_CC_OPTS = -g -O -I$(GHC_DIR)/interpreter -I$(GHC_DIR)/includes -I$(GHC_DIR)/rts -D__HUGS__ -DCOMPILING_RTS -Wall -Wstrict-prototypes -Wno-unused -DDEBUG -DDEBUG_EXTRA -Winline GHC_LIBS_NEEDED = $(TOP)/ghc/rts/libHSrts.a @@ -45,7 +45,7 @@ all :: parser.c $(GHC_LIBS_NEEDED) nHandle.$(DYN_EXT) hugs 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 -lm + $(CC) -o $@ $(CC_OPTS) $^ $(GHC_LIBS_NEEDED) -lbfd -liberty $(LIB_DL) -lm nHandle.$(DYN_EXT): nHandle.c