git @ Cat's Eye Technologies Befunge-93 / 519bab9
Apply patch from https://github.com/j4james for building on MSVC. Chris Pressey 6 years ago
2 changed file(s) with 36 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
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)
176176 # include <console.h>
177177 # define CONSOLE 1
178178 #endif /* __MWERKS__ */
179 #ifdef _MSC_VER
180 # define sleep(s) _sleep(1000 * s)
181 #endif /* _MSC_VER */
179182
180183 /********************************************************** #DEFINE'S */
181184