X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fmakefile.gcc;h=2e78c0b8494206449c62a69004f8bc2f67cbad15;hb=726aedd72a60c0fd44e7da87b2d02a6377fd408c;hp=43fb4fe0c993cd768616bc5d34e39bd5e31fa2db;hpb=9f8cbf9b523eef988a08309c58785590fd59fcb7;p=xboard.git diff --git a/winboard/makefile.gcc b/winboard/makefile.gcc index 43fb4fe..2e78c0b 100644 --- a/winboard/makefile.gcc +++ b/winboard/makefile.gcc @@ -37,6 +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) @@ -49,14 +52,6 @@ CF = -c $(WARN) -pipe $(CFDEBUG) $(DEFS) -I. -I.. CFLAGS = $(CF) $(ARCH) $(OPTS) $(CFCYG) LFLAGS = $(LFCYG) $(CFDEBUG) -fpic -s -mwindows -lwsock32 -lwinmm -lcomctl32 -# set up for JAWS -RESDEPS = $(PROJ).rc $(PROJ).h resource.h -ifeq ($(JAWS),1) - RESDEPS = jaws.rc resource.h jaws.h - DEFS += -DJAWS -endif - - all: $(PROJ).exe @@ -75,7 +70,7 @@ $(PROJ).hlp : $(PROJ).rtf # Update the resource if necessary -wbres.o: $(RESDEPS) +wbres.o: $(PROJ).rc $(PROJ).h resource.h windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@