# Generated automatically from Makefile.in by configure. # Makefile for ncurses tests. SHELL = /bin/sh srcdir = . prefix = /usr exec_prefix = ${prefix} libdir = $(exec_prefix)/lib includedir = $(prefix)/include/ncurses CC = gcc CFLAGS = -O CPPFLAGS = -I. -I../include -I$(includedir) -DHAVE_CONFIG_H CCFLAGS = $(CFLAGS) $(CPPFLAGS) LINK = $(CC) LDFLAGS = -L../lib -L$(libdir) -lmenu -lpanel -lncurses -lbsd TESTS = \ blue \ bs \ firework \ gdc \ hanoi \ knight \ ncurses \ newdemo \ rain \ tclock \ testcurs \ view \ worm \ xmas .c.o: $(CC) -c $(CCFLAGS) $< all: $(TESTS) blue: $(srcdir)/blue.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ bs: $(srcdir)/bs.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ firework: $(srcdir)/firework.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ gdc: $(srcdir)/gdc.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ hanoi: $(srcdir)/hanoi.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ knight: $(srcdir)/knight.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ ncurses: $(srcdir)/ncurses.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ newdemo: $(srcdir)/newdemo.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ rain: $(srcdir)/rain.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ tclock: $(srcdir)/tclock.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -lm -o $@ testcurs: $(srcdir)/testcurs.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ view: $(srcdir)/view.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ worm: $(srcdir)/worm.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ xmas: $(srcdir)/xmas.c $(LINK) $(CCFLAGS) $(srcdir)/$@.c $(LDFLAGS) -o $@ install: clean: -rm -rf *.o trace screendump t $(TESTS) distclean: clean -rm -f Makefile mostlyclean: clean realclean: distclean