You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
634 B
Makefile
30 lines
634 B
Makefile
# GNU MAKE Makefile for PDCurses demos with ncurses
|
|
#
|
|
# Usage: make [tgt] [WIDE=Y]
|
|
#
|
|
# where tgt can be any of:
|
|
# [all|demos|testcurs]...
|
|
|
|
ifeq ($(WIDE),Y)
|
|
CFLAGS = -Wall -O3 -D_XOPEN_SOURCE_EXTENDED -DHAVE_NCURSESW
|
|
LIBCURSES = -lncursesw
|
|
else
|
|
CFLAGS = -Wall -O3 -D_XOPEN_SOURCE_EXTENDED
|
|
LIBCURSES = -lncurses
|
|
endif
|
|
|
|
demodir = ../demos
|
|
|
|
DEMOS = firework ozdemo newtest rain testcurs worm xmas speed
|
|
|
|
all: $(DEMOS) tuidemo
|
|
|
|
$(DEMOS) : %: $(demodir)/%.c
|
|
$(CC) $(CFLAGS) -o$@ $< $(LIBCURSES)
|
|
|
|
tuidemo : $(demodir)/tuidemo.c $(demodir)/tui.c
|
|
$(CC) $(CFLAGS) -o$@ $(demodir)/tui.c $< $(LIBCURSES)
|
|
|
|
clean:
|
|
rm -f $(DEMOS) tuidemo
|