git @ Cat's Eye Technologies Befunge-93 / 44ef68f
`make bin`: such a nice idea, if only reality would cooperate... Chris Pressey 7 years ago
4 changed file(s) with 13 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 bin
0 bin/bef
1 bin/befprof
2 bin/bef2c
00 syntax: glob
11
2 bin
2 bin/bef
3 bin/befprof
4 bin/bef2c
33 CC?=gcc
44 O?=.o
55 EXE?=
6 RM_F?=rm -f
67
78 WARNS= -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
89 -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual \
2324
2425 all: $(PROGS)
2526
26 bin/.exists:
27 mkdir -p bin
28 touch bin/.exists
29
30 bin/bef: bin/.exists src/bef.c
27 bin/bef: src/bef.c
3128 $(CC) $(CFLAGS) src/bef.c -o bin/bef
3229
33 bin/befprof: bin/.exists src/befprof.c
30 bin/befprof: src/befprof.c
3431 $(CC) $(CFLAGS) src/befprof.c -o bin/befprof
3532
36 bin/bef2c: bin/.exists src/bef2c.c
33 bin/bef2c: src/bef2c.c
3734 $(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c
3835
3936 clean:
40 rm -f *.o src/*.o
37 $(RM_F) *.o src/*.o
4138
4239 distclean:
43 rm -rf bin/*
40 $(RM_F) $(PROGS)
0 This directory is where compiled executables will be placed.