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=backgammon 8 9 all: backgammon 10 11 backgammon: backgammon.$(EXT) 12 $(CC) $(LDFLAGS) -of $(OUT) backgammon.$(EXT) $(LDLIBS) 13 14 clean: 15 delete backgammon *.cob 16 17 backgammon.$(EXT): backgammon.c 18 $(CC) $(CFLAGS) backgammon.c