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.
PDCursesMod/plan9/mkfile

104 lines
1.4 KiB
Makefile

</$objtype/mkfile
LIB=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\
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
HFILES=\
/sys/include/ape/curses.h\
/sys/include/ape/panel.h\
/sys/include/ape/term.h
UPDATE=\
mkfile\
$HFILES\
${OFILES:%.$O=%.c}\
${LIB:/$objtype/%=/386/%}\
</sys/src/cmd/mksyslib
CC=pcc
LD=pcc
CFLAGS= -c -I. -I.. -D_POSIX_SOURCE -D_BSD_EXTENSION -D_C99_SNPRINTF_EXTENSION \
-DHAVE_VSNPRINTF -DHAVE_GETTIMEOFDAY
%.$O: ../pdcurses/%.c
$CC $CFLAGS ../pdcurses/$stem.c
%.$O: %.c
$CC $CFLAGS $stem.c
install:V:
cp ../curses.h /sys/include/ape/curses.h
ape/patch /sys/include/ape/curses.h <header.patch
cp ../panel.h /sys/include/ape/panel.h
cp ../term.h /sys/include/ape/term.h
cp libcurses.a /$objtype/lib/ape/libcurses.a
demos:V:
@{
mk -f mkfile_demo all
}
clean:V:
@{
mk -f mkfile_demo clean
}
rm -f *.[$OS]
nuke:V:
rm -f $LIB
rm -f /$objtype/lib/ape/libcurses.a
rm -f $HFILES