X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fmakefile.gcc;h=f55c683224d6a574094c8e6fce373a25c17b57f9;hb=0a1090546ff3f7af136e33eb4fd636b1e5d5178b;hp=5bd49dd4832010198442ecbc0bec7fe770de6629;hpb=873f7b33a08877e546e16f63a3a70dae8b3633aa;p=xboard.git diff --git a/winboard/makefile.gcc b/winboard/makefile.gcc index 5bd49dd..f55c683 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 + 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 @@ -28,12 +32,14 @@ CFCYG = -mno-cygwin LFCYG = -mno-cygwin -lmsvcrt endif - CC = gcc 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) @@ -46,7 +52,6 @@ CF = -c $(WARN) -pipe $(CFDEBUG) $(DEFS) -I. -I.. CFLAGS = $(CF) $(ARCH) $(OPTS) $(CFCYG) LFLAGS = $(LFCYG) $(CFDEBUG) -fpic -s -mwindows -lwsock32 -lwinmm -lcomctl32 - all: $(PROJ).exe @@ -65,8 +70,8 @@ $(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 $@ +wbres.o: $(PROJ).rc $(PROJ).h resource.h config.h + windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@ # note: cygwin flex needs m4 package. cygwin-setup forgets this dependency @@ -82,7 +87,7 @@ $(PROJ).exe: $(OBJS) $(PROJ).hlp winboard.o: winboard.c config.h winboard.h ../common.h ../frontend.h ../backend.h \ ../moves.h wgamelist.h defaults.h resource.h wclipbrd.h \ - wedittags.h wsockerr.h woptions.h wsnap.h ../lists.h + wedittags.h wsockerr.h woptions.h wsnap.h ../lists.h help.h $(call compile, $<) backend.o: ../backend.c config.h ../common.h ../frontend.h ../backend.h \ @@ -104,41 +109,44 @@ gamelist.o: ../gamelist.c config.h ../lists.h ../common.h ../frontend.h \ ../backend.h ../parser.h $(call compile, $<) -wclipbrd.obj: wclipbrd.c config.h ../common.h ../frontend.h ../backend.h \ +wclipbrd.o: wclipbrd.c config.h ../common.h ../frontend.h ../backend.h \ winboard.h resource.h wclipbrd.h ../lists.h $(call compile, $<) -wedittags.obj: wedittags.c config.h ../common.h winboard.h resource.h ../frontend.h \ +wedittags.o: wedittags.c config.h ../common.h winboard.h resource.h ../frontend.h \ ../backend.h ../lists.h wedittags.h $(call compile, $<) -wgamelist.obj: wgamelist.c config.h. ../common.h winboard.h resource.h ../frontend.h \ +wgamelist.o: wgamelist.c config.h. ../common.h winboard.h resource.h ../frontend.h \ ../backend.h wgamelist.h ../lists.h $(call compile, $<) -woptions.obj: woptions.c config.h ../common.h ../frontend.h ../backend.h ../lists.h \ +woptions.o: woptions.c config.h ../common.h ../frontend.h ../backend.h ../lists.h \ defaults.h winboard.h resource.h $(call compile, $<) -wengineo.obj: wengineo.c config.h ../common.h ../frontend.h ../backend.h \ +wengineo.o: wengineo.c config.h ../common.h ../frontend.h ../backend.h \ ../lists.h winboard.h resource.h wsnap.h $(call compile, $<) -whistory.obj: whistory.c config.h ../common.h ../frontend.h ../backend.h \ +whistory.o: whistory.c config.h ../common.h ../frontend.h ../backend.h \ ../lists.h winboard.h resource.h wsnap.h $(call compile, $<) -wevalgraph.obj: wevalgraph.c config.h ../common.h ../frontend.h ../backend.h \ +wevalgraph.o: wevalgraph.c config.h ../common.h ../frontend.h ../backend.h \ ../lists.h winboard.h resource.h wsnap.h $(call compile, $<) -wlayout.obj: wlayout.c config.h ../common.h winboard.h resource.h +wlayout.o: wlayout.c config.h ../common.h winboard.h resource.h $(call compile, $<) -wsockerr.obj: wsockerr.c wsockerr.h +wsockerr.o: wsockerr.c wsockerr.h $(call compile, $<) -wsnap.obj: wsnap.c wsnap.h +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 \ @@ -152,7 +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, $<) + +wchat.o: wchat.c winboard.h wsnap.h ../common.h ../backend.h ../frontend.h ../lists.h $(call compile, $<) %.o: %.c