X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fmakefile.gcc;h=e8a7e99fb90a3affd4549ceac07fbea3c2e20fa2;hb=c9602f20e9cee39ec2a7dddee3e2c12719c25ef0;hp=8dc4a882ecd4530246cca419ad900381d5dcbbc1;hpb=b9c351f74daacf02bfbaa97669555d8046b27b43;p=xboard.git diff --git a/winboard/makefile.gcc b/winboard/makefile.gcc index 8dc4a88..e8a7e99 100644 --- a/winboard/makefile.gcc +++ b/winboard/makefile.gcc @@ -7,7 +7,7 @@ PROJ=winboard OBJS=backend.o book.o gamelist.o lists.o moves.o pgntags.o uci.o zippy.o\ parser.o wbres.o wclipbrd.o wedittags.o wengineo.o wevalgraph.o\ wgamelist.o whistory.o winboard.o wlayout.o woptions.o wsnap.o\ - wsockerr.o help.o settings.o + wsockerr.o help.o wsettings.o wchat.o # make compiling less spammy @@ -18,6 +18,10 @@ compile = @echo "$1"; $(CC) $(CFLAGS) $1 USE_DEBUG=0 +# JAWS support? +JAWS=0 + + # set this to 1 unless you don't mind linking with cygwin1.dll USE_MINGW=1 @@ -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" HC="C:/Program Files/Help Workshop/hcrtf" -xn DEFS = -D_WIN32_IE=0x0300 -DWIN32 - +ifeq ($(JAWS),1) + DEFS += -DJAWS +endif WARN = -Wall -Wno-char-subscripts -Wno-parentheses ARCH = ifeq ($(USE_DEBUG),0) @@ -65,7 +71,7 @@ $(PROJ).hlp : $(PROJ).rtf # Update the resource if necessary wbres.o: $(PROJ).rc $(PROJ).h resource.h - windres --use-temp-file --include-dir .. $< -O coff -o $@ + windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@ # note: cygwin flex needs m4 package. cygwin-setup forgets this dependency @@ -154,10 +160,13 @@ zippy.o: ../zippy.c config.h ../common.h ../zippy.h ../frontend.h \ book.o: ../book.c ../common.h ../backend.h ../lists.h $(call compile, $<) -uci.o: ../uci.c ..//common.h ../backend.h ../frontend.h ../lists.h +uci.o: ../uci.c ../common.h ../backend.h ../frontend.h ../lists.h + $(call compile, $<) + +wsettings.o: wsettings.c ../common.h ../backend.h ../frontend.h ../lists.h $(call compile, $<) -wsettings.o: wsettings.c ..//common.h ../backend.h ../frontend.h ../lists.h +wchat.o: wchat.c winboard.h wsnap.h ../common.h ../backend.h ../frontend.h ../lists.h $(call compile, $<) %.o: %.c