From c8fa1fad99d9c41378b75f647b0ce0eea4bb9a6f Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Wed, 12 Jun 2024 23:43:57 +0200 Subject: [PATCH] adapt for dos --- makefile | 4 +++- scrabble.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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); -- 2.30.2