mirror of
https://github.com/abakh/nbsdgames.git
synced 2025-02-02 15:07:27 -05:00
some games build on plan9
This commit is contained in:
parent
dccab31462
commit
d7463823d6
@ -304,7 +304,7 @@ void sigint_handler(int x){
|
||||
puts("Quit.");
|
||||
exit(x);
|
||||
}
|
||||
int main(void){
|
||||
void main(void){
|
||||
signal(SIGINT,sigint_handler);
|
||||
initscr();
|
||||
noecho();
|
||||
@ -394,7 +394,7 @@ int main(void){
|
||||
if(!hooknum)
|
||||
break;
|
||||
if(input!=ERR){
|
||||
usleep(100000);
|
||||
sleep(1);
|
||||
flushinp();
|
||||
}
|
||||
}
|
||||
|
@ -1,35 +1,32 @@
|
||||
APE=/sys/src/ape
|
||||
<$APE/config
|
||||
|
||||
#comment out all that depend on variable size arrays
|
||||
TARG=\
|
||||
battleship \
|
||||
checkers \
|
||||
fifteen \
|
||||
# fifteen \
|
||||
fisher \
|
||||
jewels \
|
||||
memoblocks \
|
||||
miketron \
|
||||
mines \
|
||||
muncher \
|
||||
pipes \
|
||||
rabbithole \
|
||||
# memoblocks \
|
||||
# miketron \
|
||||
# mines \
|
||||
# muncher \
|
||||
# pipes \
|
||||
# rabbithole \
|
||||
redsquare \
|
||||
reversi \
|
||||
sos \
|
||||
sudoku
|
||||
# sos \
|
||||
# sudoku
|
||||
|
||||
HFILES=\
|
||||
/sys/include/ape/curses.h\
|
||||
/sys/include/ape/panel.h\
|
||||
BIN=/$objtype/bin/games
|
||||
|
||||
UPDATE=\
|
||||
mkfile\
|
||||
$HFILES\
|
||||
${OFILES:%.$O=%.c}\
|
||||
/$objtype/ape/lib/libcurses.a
|
||||
|
||||
</sys/src/cmd/mkmany
|
||||
|
||||
CFLAGS= -c -D_POSIX_SOURCE -D_BSD_EXTENSION -DPlan9
|
||||
CFLAGS= -c -D_POSIX_SOURCE -D_BSD_EXTENSION -DPlan9 -Ddraw=nb_draw
|
||||
|
||||
$O.out: /$objtype/lib/ape/libcurses.a
|
||||
|
Loading…
Reference in New Issue
Block a user