1COMPILE = $(CC) $(CFLAGS) -g -DSLANG -I.. 2LFLAGS = -L../$(ARCH)objs -lslang 3M_LIB = -lm 4 5CURSES_H = ../curses.h 6 7EXECS = rain blue hanoi firework \ 8 bs battle gdc tclock worm view 9#knight newdemo testcurs xmas 10 11all: $(CURSES_H) $(EXECS) 12 13$(CURSES_H): 14 echo '#include <slcurses.h>' > $(CURSES_H) 15 16view: view.c 17 $(COMPILE) $@.c -o $@ $(LFLAGS) 18bs: $(CURSES_H) bs.c 19 $(COMPILE) $@.c -o $@ $(LFLAGS) 20gdc: $(CURSES_H) gdc.c 21 $(COMPILE) $@.c -o $@ $(LFLAGS) 22battle: $(CURSES_H) battle.c 23 $(COMPILE) $@.c -o $@ $(LFLAGS) 24hanoi: $(CURSES_H) hanoi.c 25 $(COMPILE) $@.c -o $@ $(LFLAGS) 26blue: $(CURSES_H) blue.c 27 $(COMPILE) $@.c -o $@ $(LFLAGS) 28rain: $(CURSES_H) rain.c 29 $(COMPILE) $@.c -o $@ $(LFLAGS) 30firework: $(CURSES_H) firework.c 31 $(COMPILE) $@.c -o $@ $(LFLAGS) 32tclock: $(CURSES_H) tclock.c 33 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 34worm: worm.c 35 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 36knight: knight.c 37 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 38xmas: xmas.c 39 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 40newdemo: newdemo.c 41 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 42testcurs: testcurs.c 43 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 44lrtest: lrtest.c 45 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 46t: t.c 47 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 48key: key.c 49 $(COMPILE) $@.c -o $@ $(LFLAGS) $(M_LIB) 50 51clean: 52 /bin/rm $(EXECS) 53