-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathMakefile.windows
More file actions
executable file
·26 lines (22 loc) · 951 Bytes
/
Makefile.windows
File metadata and controls
executable file
·26 lines (22 loc) · 951 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
#
# Use with nmake
#
all: bin/mhs.exe bin/mhseval.exe
# Compile mhs from distribution, with C compiler
bin/mhs.exe: src/runtime/*.c src/runtime/windows/* #generated/mhs.c
@-mkdir bin
@-mkdir build
cl -F"obuild\\" -O2 -Isrc/runtime -Isrc/runtime/windows src/runtime/main.c src/runtime/eval.c generated/mhs.c -Fe"bin\\mhs.exe"
# Compile combinator evaluator
bin/mhseval.exe: src/runtime/*.c src/runtime/windows/* src/runtime/comb.c
@-mkdir bin
@-mkdir build
cl -F"obuild\\" -O2 -Isrc/runtime -Isrc/runtime/windows src/runtime/main.c src/runtime/eval.c src/runtime/comb.c -Fe"bin\\mhseval.exe"
mhs.conf: mhs.conf.in
sed -e "s,GMPFLAGS,$(MHSGMPCCFLAGS)," -e "s,GMPLIBS,$(MHSGMPCCLIBS)," mhs.conf.in > mhs.conf
exampletest: bin/mhs.exe bin/mhseval.exe Example.hs mhs.conf
bin\mhs -r Example
bin\mhs Example && bin\mhseval
bin\mhs -itests Nfib && bin\mhseval
bin\mhs -r -itests Info
bin\mhs -twindows Example -oEx.exe && Ex && rm Ex.exe