From: Laurent Mazet Date: Wed, 12 Jun 2024 21:43:57 +0000 (+0200) Subject: adapt for dos X-Git-Tag: v1.0~23 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=c8fa1fad99d9c41378b75f647b0ce0eea4bb9a6f;p=scrabble.git adapt for dos --- diff --git a/makefile b/makefile index 36cd2a8..15082bf 100644 --- a/makefile +++ b/makefile @@ -20,7 +20,9 @@ ifeq ($(OS),Windows_NT) #LDLIBS += -lws2_32 LDOPT = winlnk endif - +ifeq ($(OS),Dos) +LDOPT = doslnk +endif # Targets diff --git a/scrabble.c b/scrabble.c index 5f05953..c9bdd18 100644 --- a/scrabble.c +++ b/scrabble.c @@ -1,6 +1,7 @@ /* depend: */ /* cflags: */ /* linker: constant.o debug.o display.o function.o -lcurses */ +/* doslnk: constant.o debug.o display.o function.o -lpdc~1 */ /* winlnk: constant.o debug.o display.o function.o -lpdcurses */ #include @@ -318,8 +319,8 @@ int main (int argc, char *argv[]) moveletter (game[n], +1); drawwindow (game[n], score[n], xdrawwin[n], ydrawwin[n], 1); break; - case ERR: - default: + //case ERR: + //default: } showboard (play, board, xoffset, yoffset, mode); nbpoints = evalscore (play, turn[n], board, bag);