Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/curses/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


APE=/sys/src/ape
<$APE/config

LIB=/$objtype/lib/ape/libcurses.a

OFILES=\
# pdcurses \
	addch.$O\
	addchstr.$O\
	addstr.$O\
	attr.$O\
	beep.$O\
	bkgd.$O\
	border.$O\
	clear.$O\
	color.$O\
	debug.$O\
	delch.$O\
	deleteln.$O\
	deprec.$O\
	getch.$O\
	getstr.$O\
	getyx.$O\
	inch.$O\
	inchstr.$O\
	initscr.$O\
	inopts.$O\
	insch.$O\
	insstr.$O\
	instr.$O\
	kernel.$O\
	keyname.$O\
	mouse.$O\
	move.$O\
	outopts.$O\
	overlay.$O\
	pad.$O\
	panel.$O\
	printw.$O\
	refresh.$O\
	scanw.$O\
	scr_dump.$O\
	scroll.$O\
	slk.$O\
	termattr.$O\
	terminfo.$O\
	touch.$O\
	util.$O\
	window.$O\
# plan9 \
	pdcclip.$O\
	pdcdisp.$O\
	pdcgetsc.$O\
	pdckbd.$O\
	pdcscrn.$O\
	pdcsetsc.$O\
	pdcutil.$O\
	pdcplan9.$O\

HFILES=\
	/sys/include/ape/curses.h\
	/sys/include/ape/panel.h\

UPDATE=\
	mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\
	${LIB:/$objtype/%=/386/%}\

</sys/src/cmd/mksyslib

CFLAGS= -c -I. -D_POSIX_SOURCE -D_BSD_EXTENSION #-DPDCDEBUG

%.$O: pdcurses/%.c
	$CC $CFLAGS pdcurses/$stem.c

%.$O: plan9/%.c
	$CC $CFLAGS plan9/$stem.c

demos:V:
	@{
		cd demos
		mk all
	}

clean:V:
	@{
		cd demos
		mk clean
	}
	rm -f *.[$OS]

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.