undid some previous changes
[xboard.git] / winboard / makefile.gcc
index 8dc4a88..83dde19 100644 (file)
@@ -7,7 +7,7 @@ PROJ=winboard
 OBJS=backend.o book.o gamelist.o lists.o moves.o pgntags.o uci.o zippy.o\\r
  parser.o wbres.o wclipbrd.o wedittags.o wengineo.o wevalgraph.o\\r
  wgamelist.o whistory.o winboard.o wlayout.o woptions.o wsnap.o\\r
- wsockerr.o help.o settings.o\r
+ wsockerr.o help.o wsettings.o\r
 \r
 \r
 # make compiling less spammy\r
@@ -18,6 +18,10 @@ compile = @echo "$1"; $(CC) $(CFLAGS) $1
 USE_DEBUG=0\r
 \r
 \r
+# JAWS support?\r
+JAWS=0\r
+\r
+\r
 # set this to 1 unless you don't mind linking with cygwin1.dll\r
 USE_MINGW=1\r
 \r
@@ -33,7 +37,9 @@ FLEX = "flex.exe" # we need version 2.5.4 or later, cygwin's is 2.5.35
 #      "c:/mingw/mingw32/bin/flex.exe"\r
 HC="C:/Program Files/Help Workshop/hcrtf" -xn\r
 DEFS = -D_WIN32_IE=0x0300 -DWIN32\r
-\r
+ifeq ($(JAWS),1)\r
+  DEFS += -DJAWS\r
+endif\r
 WARN = -Wall -Wno-char-subscripts -Wno-parentheses\r
 ARCH =\r
 ifeq ($(USE_DEBUG),0)\r
@@ -65,7 +71,7 @@ $(PROJ).hlp : $(PROJ).rtf
 \r
 # Update the resource if necessary\r
 wbres.o: $(PROJ).rc $(PROJ).h resource.h\r
-       windres --use-temp-file --include-dir .. $< -O coff -o $@\r
+       windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@\r
 \r
 \r
 # note: cygwin flex needs m4 package.  cygwin-setup forgets this dependency\r