NBINDIR:=$(HOME)/ncurses-HEAD/bin # These find Debian's old ncurses headers and libraries--not what I # want. #CFLAGS:=$(shell ncurses6-config --cflags) #LDFLAGS:=$(shell ncurses6-config --libs) CFLAGS:=$(shell $(NBINDIR)/ncursesw6-config --cflags) LDFLAGS:=$(shell $(NBINDIR)/ncursesw6-config --libs) ALL:=hello_mouse hello_narrow hello_wide insch nl nl2 \ simple termcap waddch wresize wsimple getyx termsize wunctrl \ define-key cooked instr inwstr getstr get_wstr scroll \ bkgd_uninitialized bkgd bkgrnd_uninitialized bkgrnd \ addch_uninitialized addch add_wch_uninitialized add_wch all: $(ALL) clean: $(RM) $(ALL) %: %.c $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)