1 CC=cc
2 LD=cc
3 CFLAGS=-lg -spaf alm
4 LDFLAGS=-lg
5 #LDLIBS=-library >sl3p>c_compiler>e>libcurses.archive
6 EXT=cob
7 OUT=wizard
8
9 all: wizard
10
11 wizard: main.$EXT intro.$EXT getch.$EXT fancy.$EXT functions.$EXT defines.$EXT combat.$EXT classes.$EXT
12 $CC $LDFLAGS -of $OUT main.$EXT intro.$EXT getch.$EXT fancy.$EXT functions.$EXT defines.$EXT combat.$EXT classes.$EXT $LDLIBS
13
14 clean:
15 delete wizard *.cob
16
17 main.$EXT: main.c
18 $CC $CFLAGS main.c
19
20 intro.$EXT: intro.c
21 $CC $CFLAGS intro.c
22
23 getch.$EXT: getch.c
24 $CC $CFLAGS getch.c
25
26 fancy.$EXT: fancy.c
27 $CC $CFLAGS fancy.c
28
29 functions.$EXT: functions.c
30 $CC $CFLAGS functions.c
31
32 defines.$EXT: defines.c
33 $CC $CFLAGS defines.c
34
35 combat.$EXT: combat.c
36 $CC $CFLAGS combat.c
37
38 classes.$EXT: classes.c
39 $CC $CFLAGS classes.c