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