git @ Cat's Eye Technologies Befunge-93 / 0470e6f
Merge pull request #15 from catseye/build-on-msvc Build on MSVC Chris Pressey authored 3 years ago GitHub committed 3 years ago
4 changed file(s) with 40 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # NMAKE Makefile for bef.
1
2 PROGS=bin\bef.exe bin\befprof.exe bin\bef2c.exe
3 CC=cl
4 O=.obj
5 RM_F=del
6
7 WARNS= -Wall -wd4820 -wd4131 -wd4459 -wd4242 -wd4244 -wd4996 \
8 -wd4668 -wd4255 -wd4710 -wd4706 -wd4702 -wd4711 -wd4456 -wd5045
9
10 CFLAGS=$(CFLAGS) -Ox -nologo
11 CFLAGS=$(CFLAGS) $(WARNS) $(EXTRA_CFLAGS)
12
13 !ifdef DEBUG
14 CFLAGS=$(CFLAGS) -Zi
15 !endif
16
17 all: $(PROGS)
18
19 bin\bef.exe: src\bef.c
20 $(CC) $(CFLAGS) src\bef.c -Fe:bin\bef
21
22 bin\befprof.exe: src\befprof.c
23 $(CC) $(CFLAGS) src\befprof.c -Fe:bin\befprof
24
25 bin\bef2c.exe: src\bef2c.c
26 $(CC) $(CFLAGS) src\bef2c.c -Fe:bin\bef2c
27
28 clean:
29 $(RM_F) *$(O) src\*$(O)
30
31 distclean:
32 $(RM_F) $(PROGS)
6262 DICE C 3.15 (AmigaDOS 1.3)
6363 DJGPP 2.05 gcc 8.1.0 (32-bit Protected-Mode, FreeDOS 1.1)
6464 Borland C++ v3.1 (16-bit, FreeDOS 1.1)
65 Microsoft Visual C++ 14.15 (see NMakefile)
6566
6667 Has, in the Past, been Known to Compile Under:
6768
7677 -1 onto the stack instead of an undefined value;
7778 added -u option to retain old behaviour in this case
7879 (thanks to James Holderness for noticing and suggesting)
80 support for compiling with MSVC (also by James Holderness)
7981
8082 v2.23: Aug 2012, Chris Pressey
8183 delay given with -y now actually happens when compiled
176178 # include <console.h>
177179 # define CONSOLE 1
178180 #endif /* __MWERKS__ */
181 #ifdef _MSC_VER
182 # define sleep(s) _sleep(1000 * s)
183 #endif /* _MSC_VER */
179184
180185 /********************************************************** #DEFINE'S */
181186
4949 gcc 4.5.3 (NetBSD 6.1.5)
5050 DJGPP 2.05 gcc 8.1.0 (32-bit Protected-Mode, FreeDOS 1.1)
5151 Borland C++ v3.1 (16-bit, FreeDOS 1.1)
52 Microsoft Visual C++ 14.15 (see NMakefile)
5253
5354 Has, in the Past, been Known to Compile Under:
5455
6161 DJGPP 2.05 gcc 8.1.0 (32-bit Protected-Mode, FreeDOS 1.1)
6262 Borland C++ v3.1 (16-bit, FreeDOS 1.1)
6363 (NOTE: use "compact" or "large" memory model!)
64 Microsoft Visual C++ 14.15 (see NMakefile)
6465
6566 Has, in the Past, been Known to Compile Under:
6667