要在windows 7上运行以下makefile,我需要安装/配置什么:
MONO = mono
MONOC = gmcs
MONOCFLAGS = -optimize -reference:${PARSERREF}
GPLEX = ${MONO} gplex.exe
GPPG = ${MONO} gppg.exe
PARSERREF = bin/ShiftReduceParser.dll
CSFILES = Absyn.cs Parser.cs Printer.cs Scanner.cs Test.cs VisitSkeleton.cs AbstractVisitSkeleton.cs
all: test
clean:
rm -f test.pdf test
distclean: clean
rm -f ${CSFILES}
rm -f test.l test.y test.tex
rm -f Makefile
test: Parser.cs Scanner.cs
@echo "Compiling test..."
${MONOC} ${MONOCFLAGS} -out:bin/test.exe ${CSFILES}
Scanner.cs: test.l
${GPLEX} /out:$@ test.l
Parser.cs: test.y
${GPPG} /gplex test.y > $@我一直使用Visual Studio,但这次是由BNFC (解析器生成器)生成的。我在这个makefile中没有看到csc.exe (CSharp编译器)。有人能给我解释一下吗?
注意:我已经安装了gplex.exe和gppg.exe,并且我的机器上安装了.NET。
发布于 2016-11-30 01:33:06
您需要下载并安装GNU make for Windows
http://gnuwin32.sourceforge.net/packages/make.htm
然后,打开cmd.exe和cd到makefile所在的目录。
然后键入make并按enter键,在本例中为make test。
https://stackoverflow.com/questions/36213431
复制相似问题