git @ Cat's Eye Technologies Befunge-93 / 34d6bc8
DJGPP actually doesn't like being given .exe extension at all. Chris Pressey 7 years ago
1 changed file(s) with 8 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
00 # GNU Makefile for bef. No -Wshadow because horrible use of macros.
11
2 PROGS=bin/bef$(EXE) bin/befprof$(EXE) bin/bef2c$(EXE)
2 PROGS=bin/bef bin/befprof bin/bef2c
33 CC?=gcc
44 O?=.o
5 EXE?=
65 RM_F?=rm -f
76
87 WARNS= -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
1110 -Winline -Wnested-externs -Wredundant-decls
1211
1312 ifdef DJGPP
14 EXE=.exe
1513 else
1614 ifdef ANSI
1715 CFLAGS+= -ansi -pedantic
2826
2927 all: $(PROGS)
3028
31 bin/bef$(EXE): src/bef.c
32 $(CC) $(CFLAGS) src/bef.c -o bin/bef$(EXE)
29 bin/bef: src/bef.c
30 $(CC) $(CFLAGS) src/bef.c -o bin/bef
3331
34 bin/befprof$(EXE): src/befprof.c
35 $(CC) $(CFLAGS) src/befprof.c -o bin/befprof$(EXE)
32 bin/befprof: src/befprof.c
33 $(CC) $(CFLAGS) src/befprof.c -o bin/befprof
3634
37 bin/bef2c$(EXE): src/bef2c.c
38 $(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c$(EXE)
35 bin/bef2c: src/bef2c.c
36 $(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c
3937
4038 clean:
41 $(RM_F) *.o src/*.o
39 $(RM_F) *$(O) src/*$(O)
4240
4341 distclean:
4442 $(RM_F) $(PROGS)