Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
00277659
Commit
00277659
authored
Jun 11, 2004
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/utils/hsc2hs/Makefile.inc
0 → 100644
View file @
00277659
ifeq
"" "${MKDIR}"
MKDIR
:=
$(
shell
pwd
)
#MKDIR:=$(PWD)
else
MKDIR
:=
$(
patsubst
%/
$(
notdir
${MKDIR}
)
,%,
${MKDIR}
)
endif
include
${MKDIR}/Makefile.inc
ghc/utils/hsc2hs/Makefile.nhc98
0 → 100644
View file @
00277659
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)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment