adapt for dos
authorLaurent Mazet <mazet@softndesign.org>
Wed, 12 Jun 2024 21:43:57 +0000 (23:43 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Wed, 12 Jun 2024 21:43:57 +0000 (23:43 +0200)
makefile
scrabble.c

index 36cd2a81ca851da6ff7c6f30ca60b356ec7ad76d..15082bfecf983e42b6420c1ff2ad25b979322270 100644 (file)
--- 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
 
index 5f059535a32f6a02581edcf4f43f5d2cbfd7da3e..c9bdd18150cb6f64b8684183963cfc6705537e5f 100644 (file)
@@ -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 <curses.h>
@@ -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);