-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (28 loc) · 901 Bytes
/
makefile
File metadata and controls
36 lines (28 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ifndef BINDIR
BINDIR=${shell pwd}/bin/
endif
FSC=fsharpc
FSC_FLAGS= --gccerrors -g --nologo
JACKTESTDIR=Parser/JackTests
TXTS=${BINDIR}PongL.txt ${BINDIR}Max.txt ${BINDIR}Max.hack ${BINDIR}PongL.hack ${BINDIR}Pong.hack ${BINDIR}Rect.hack ${BINDIR}Pong.txt ${BINDIR}Rect.txt
export COMPILE=${FSC} ${FSC_FLAGS}
$(shell mkdir -p ${BINDIR})
export JACKTEST=${BINDIR}Jack-test.dll
ALLBINS=${BINDIR}Parser.dll ${BINDIR}Jack.dll ${JACKTEST} ${BINDIR}Runner.exe
.PHONY: all ${ALLBINS} run
all: ${ALLBINS}
run: ${ALLBINS}
mono --debug bin/Runner.exe
${BINDIR}Parser.dll:
cd Parser && ${MAKE}
${BINDIR}Jack.dll: ${BINDIR}Parser.dll
cd Jack && ${MAKE}
${BINDIR}Runner.exe: ${BINDIR}Parser.dll ${BINDIR}Jack.dll
cd Runner && ${MAKE}
${TXTS}:
cp ${JACKTESTDIR}/*.txt bin
cp ${JACKTESTDIR}/*.hack bin
clean:
rm ${ALLBINS}
${JACKTEST}: ${BINDIR}Jack.dll ${TXTS}
cd Parser/JackTests && ${MAKE}