git @ Cat's Eye Technologies Befunge-93 / e446e78
Use dos.h and conio.h with DJGPP. Chris Pressey 7 years ago
2 changed file(s) with 14 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1111 -Winline -Wnested-externs -Wredundant-decls
1212
1313 ifdef ANSI
14 CFLAGS+= -ansi -pedantic -D_BSD_SOURCE
14 CFLAGS+= -ansi -pedantic
15 else ifdef DJGPP
16 CFLAGS+= -ansi -pedantic
1517 else
1618 CFLAGS+= -std=c99 -D_POSIX_C_SOURCE=200809L
1719 endif
2426
2527 all: $(PROGS)
2628
27 bin/bef: src/bef.c
28 $(CC) $(CFLAGS) src/bef.c -o bin/bef
29 bin/bef$(EXE): src/bef.c
30 $(CC) $(CFLAGS) src/bef.c -o bin/bef$(EXE)
2931
30 bin/befprof: src/befprof.c
31 $(CC) $(CFLAGS) src/befprof.c -o bin/befprof
32 bin/befprof$(EXE): src/befprof.c
33 $(CC) $(CFLAGS) src/befprof.c -o bin/befprof$(EXE)
3234
33 bin/bef2c: src/bef2c.c
34 $(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c
35 bin/bef2c$(EXE): src/bef2c.c
36 $(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c$(EXE)
3537
3638 clean:
3739 $(RM_F) *.o src/*.o
148148 #include <stdlib.h>
149149 #include <ctype.h>
150150 #include <time.h>
151 #ifdef __DJGPP__
152 # include <dos.h>
153 # include <conio.h>
154 # define CONSOLE 1
155 #endif /* __BORLANDC__ */
151156 #ifdef __BORLANDC__
152157 # include <dos.h>
153158 # include <conio.h>