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
LFCYG = -mno-cygwin -lmsvcrt\r
endif\r
\r
-\r
CC = gcc\r
FLEX = "flex.exe" # we need version 2.5.4 or later, cygwin's is 2.5.35\r
# "c:/mingw/mingw32/bin/flex.exe"\r
CFLAGS = $(CF) $(ARCH) $(OPTS) $(CFCYG)\r
LFLAGS = $(LFCYG) $(CFDEBUG) -fpic -s -mwindows -lwsock32 -lwinmm -lcomctl32\r
\r
+# set up for JAWS\r
+RESDEPS = $(PROJ).rc $(PROJ).h resource.h\r
+ifeq ($(JAWS),1)\r
+ RESDEPS = jaws.rc resource.h jaws.h\r
+ DEFS += -DJAWS\r
+endif\r
+\r
\r
all: $(PROJ).exe\r
\r
\r
\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
+wbres.o: $(RESDEPS)\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
\r
winboard.o: winboard.c config.h winboard.h ../common.h ../frontend.h ../backend.h \\r
../moves.h wgamelist.h defaults.h resource.h wclipbrd.h \\r
- wedittags.h wsockerr.h woptions.h wsnap.h ../lists.h help.h
+ wedittags.h wsockerr.h woptions.h wsnap.h ../lists.h help.h\r
$(call compile, $<)\r
\r
backend.o: ../backend.c config.h ../common.h ../frontend.h ../backend.h \\r
$(call compile, $<)\r
\r
gamelist.o: ../gamelist.c config.h ../lists.h ../common.h ../frontend.h \\r
- ../backend.h ../parser.h
- $(call compile, $<)
-
-wclipbrd.o: wclipbrd.c config.h ../common.h ../frontend.h ../backend.h \
- winboard.h resource.h wclipbrd.h ../lists.h
- $(call compile, $<)
-
-wedittags.o: wedittags.c config.h ../common.h winboard.h resource.h ../frontend.h \
- ../backend.h ../lists.h wedittags.h
- $(call compile, $<)
-
-wgamelist.o: wgamelist.c config.h. ../common.h winboard.h resource.h ../frontend.h \
- ../backend.h wgamelist.h ../lists.h
- $(call compile, $<)
-
-woptions.o: woptions.c config.h ../common.h ../frontend.h ../backend.h ../lists.h \
- defaults.h winboard.h resource.h
- $(call compile, $<)
-
-wengineo.o: wengineo.c config.h ../common.h ../frontend.h ../backend.h \
- ../lists.h winboard.h resource.h wsnap.h
- $(call compile, $<)
-
-whistory.o: whistory.c config.h ../common.h ../frontend.h ../backend.h \
- ../lists.h winboard.h resource.h wsnap.h
- $(call compile, $<)
-
-wevalgraph.o: wevalgraph.c config.h ../common.h ../frontend.h ../backend.h \
- ../lists.h winboard.h resource.h wsnap.h
- $(call compile, $<)
-
-wlayout.o: wlayout.c config.h ../common.h winboard.h resource.h
- $(call compile, $<)
-
-wsockerr.o: wsockerr.c wsockerr.h
- $(call compile, $<)
-
-help.o: help.c help.h
- $(call compile, $<)
-
-wsnap.o: wsnap.c wsnap.h
- $(call compile, $<)
-
-pgntags.o: ../pgntags.c config.h ../common.h ../frontend.h ../backend.h \
+ ../backend.h ../parser.h\r
+ $(call compile, $<)\r
+\r
+wclipbrd.o: wclipbrd.c config.h ../common.h ../frontend.h ../backend.h \\r
+ winboard.h resource.h wclipbrd.h ../lists.h\r
+ $(call compile, $<)\r
+\r
+wedittags.o: wedittags.c config.h ../common.h winboard.h resource.h ../frontend.h \\r
+ ../backend.h ../lists.h wedittags.h\r
+ $(call compile, $<)\r
+\r
+wgamelist.o: wgamelist.c config.h. ../common.h winboard.h resource.h ../frontend.h \\r
+ ../backend.h wgamelist.h ../lists.h\r
+ $(call compile, $<)\r
+\r
+woptions.o: woptions.c config.h ../common.h ../frontend.h ../backend.h ../lists.h \\r
+ defaults.h winboard.h resource.h\r
+ $(call compile, $<)\r
+\r
+wengineo.o: wengineo.c config.h ../common.h ../frontend.h ../backend.h \\r
+ ../lists.h winboard.h resource.h wsnap.h\r
+ $(call compile, $<)\r
+\r
+whistory.o: whistory.c config.h ../common.h ../frontend.h ../backend.h \\r
+ ../lists.h winboard.h resource.h wsnap.h\r
+ $(call compile, $<)\r
+\r
+wevalgraph.o: wevalgraph.c config.h ../common.h ../frontend.h ../backend.h \\r
+ ../lists.h winboard.h resource.h wsnap.h\r
+ $(call compile, $<)\r
+\r
+wlayout.o: wlayout.c config.h ../common.h winboard.h resource.h\r
+ $(call compile, $<)\r
+\r
+wsockerr.o: wsockerr.c wsockerr.h\r
+ $(call compile, $<)\r
+\r
+help.o: help.c help.h\r
+ $(call compile, $<)\r
+\r
+wsnap.o: wsnap.c wsnap.h\r
+ $(call compile, $<)\r
+\r
+pgntags.o: ../pgntags.c config.h ../common.h ../frontend.h ../backend.h \\r
../parser.h ../lists.h\r
$(call compile, $<)\r
\r