\r
# make compiling less spammy\r
compile = @echo "$1"; $(CC) $(CFLAGS) $1\r
+compile = $(CC) $(CFLAGS) $1\r
\r
\r
# Debugging?\r
# "c:/mingw/mingw32/bin/flex.exe"\r
HC="C:/Program Files/Help Workshop/hcrtf" -xn\r
DEFS = -D_WIN32_IE=0x0300 -DWIN32\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
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
\r
# Update the resource if necessary\r
-wbres.o: $(RESDEPS)\r
+#wbres.o: $(RESDEPS)\r
+wbres.o: $(PROJ).rc $(PROJ).h resource.h\r
windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@\r
\r
\r
USE_DEBUG=0\r
\r
\r
+# JAWS support?\r
+JAWS=0\r
+\r
+\r
CC = @cl\r
RC = @rc\r
LINK = link\r
HC="c:\program files\help workshop\hcrtf.exe" -xn\r
FLEX = "c:/mingw/mingw32/bin/flex.exe"\r
-DEFS = -D_WIN32_IE=0x300 -DWIN32 -DWINVER=0x400 -D_WIN32_WINDOWS=0x500\r
+DEFS = -D_WIN32_IE=0x300 -DWIN32 -DWINVER=0x0500 -D_WIN32_WINDOWS=0x500\r
+!if $(JAWS) == 1\r
+DEFS = -DJAWS $(DEFS)\r
+!endif\r
#WARN = -W3\r
ARCH =\r
\r
\r
winboard.obj: winboard.c config.h winboard.h ../common.h ../frontend.h \\r
../backend.h ../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
$(CC) $(CFLAGS) winboard.c\r
\r
backend.obj: ../backend.c config.h ../common.h ../frontend.h ../backend.h \\r
wsockerr.obj: wsockerr.c wsockerr.h\r
$(CC) $(CFLAGS) wsockerr.c\r
\r
-help.obj: help.c help.h
- $(CC) $(CFLAGS) help.c
-
+help.obj: help.c help.h\r
+ $(CC) $(CFLAGS) help.c\r
+\r
wsnap.obj: wsnap.c wsnap.h\r
$(CC) $(CFLAGS) wsnap.c\r
\r