Commit 00277659 authored by malcolm's avatar malcolm
Browse files

[project @ 2004-06-11 11:10:57 by malcolm]

Move Makefiles for nhc98's build here, prior to grafting the directory.
parent 66dc6412
ifeq "" "${MKDIR}"
MKDIR:=$(shell pwd)
#MKDIR:=$(PWD)
else
MKDIR:=$(patsubst %/$(notdir ${MKDIR}),%, ${MKDIR})
endif
include ${MKDIR}/Makefile.inc
include Makefile.inc
OBJDIR = ${BUILDDIR}/obj/hsc2hs
TARGET = ${DST}/hsc2hs$(EXE)
SRCS = Main.hs
FROMC = ../libraries/base/System/Console/GetOpt.$C \
../libraries/base/Data/List.$C
ifeq "$(findstring ghc, ${HC})" "ghc"
HFLAGS = $(shell $(LOCAL)fixghc $(GHCSYM) -package base -package lang )
export HFLAGS
endif
ifeq "$(findstring hbc, ${HC})" "hbc"
HFLAGS =
export HFLAGS
endif
ifeq "$(findstring nhc98, ${HC})" "nhc98"
HFLAGS = -package base +CTS -H4M -CTS
export HFLAGS
endif
all: $(TARGET)
install: $(TARGET)
cfiles: cleanC $(SRCS)
$(HMAKE) -hc=$(LOCAL)nhc98 -package base -C Main.hs
clean:
-rm -f *.hi *.o $(OBJDIR)/*.o
cleanC: clean
-rm -f *.hc *.c
realclean: clean cleanC
-rm -f $(OBJDIR)/Main$(EXE)
$(TARGET): $(OBJDIR) $(SRCS)
$(HMAKE) -hc=$(HC) Main -d$(OBJDIR) \
$(shell echo "${BUILDOPTS}") $(HFLAGS)
mv $(OBJDIR)/Main$(EXE) $(TARGET)
$(STRIP) $(TARGET)
$(OBJDIR):
mkdir -p $(OBJDIR)
fromC: $(OBJDIR)
cp $(FROMC) .
$(LOCAL)nhc98 -cpp -o $(TARGET) -d$(OBJDIR) *.$C
$(STRIP) $(TARGET)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment