mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
Added ncurses_tests to SDL (1 and 2).
This commit is contained in:
33
demos/nctests.mif
Normal file
33
demos/nctests.mif
Normal file
@@ -0,0 +1,33 @@
|
||||
# This provides for compiling and linking the ncurses test programs.
|
||||
|
||||
ncurses_testdir = $(HOME)/ncurses-5.9/test
|
||||
|
||||
NCURSES_TESTS = bs gdc hanoi knight tclock ncurses
|
||||
|
||||
ncurses_tests: $(NCURSES_TESTS)
|
||||
|
||||
ncurses_clean:
|
||||
-rm -f *.o trace $(NCURSES_TESTS)
|
||||
|
||||
NCFLAGS = $(DEMOFLAGS) -I$(demodir) -I$(ncurses_testdir)
|
||||
|
||||
bs: $(ncurses_testdir)/bs.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
gdc: $(ncurses_testdir)/gdc.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
hanoi: $(ncurses_testdir)/hanoi.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
knight: $(ncurses_testdir)/knight.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
tclock: $(ncurses_testdir)/tclock.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
view: $(ncurses_testdir)/view.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
ncurses: $(ncurses_testdir)/ncurses.c
|
||||
$(BUILD) $(NCFLAGS) -o $@ $< $(LDFLAGS)
|
||||
@@ -1,8 +1,8 @@
|
||||
/* This file is only used with the ncurses test programs.
|
||||
*
|
||||
* Have ncurses-5.9 unpacked in your $(HOME) (you don't need to build
|
||||
* it), or edit ncurses_testdir appropriately in the Makefile. Configure
|
||||
* and build PDCurses, and:
|
||||
* it), or edit ncurses_testdir appropriately in the Makefile or
|
||||
* nctests.mif. Configure and build PDCurses, and:
|
||||
*
|
||||
* "make ncurses_tests" to start.
|
||||
* "make ncurses_clean" when you're done.
|
||||
|
||||
@@ -110,3 +110,5 @@ tui.o: $(demodir)/tui.c $(demodir)/tui.h
|
||||
|
||||
tuidemo.o: $(demodir)/tuidemo.c
|
||||
$(BUILD) -c $(DEMOFLAGS) $(demodir)/tuidemo.c
|
||||
|
||||
include $(demodir)/nctests.mif
|
||||
|
||||
@@ -106,3 +106,5 @@ tui.o: $(demodir)/tui.c $(demodir)/tui.h
|
||||
|
||||
tuidemo.o: $(demodir)/tuidemo.c
|
||||
$(BUILD) -c $(DEMOFLAGS) $(demodir)/tuidemo.c
|
||||
|
||||
include $(demodir)/nctests.mif
|
||||
|
||||
Reference in New Issue
Block a user