X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fmakefile.gcc;h=aea08d9d756d9e29f100de8d3268167d563d8d62;hb=a315e02d0fd3ee18914b012f7fc0c4d9ae1504cb;hp=43fb4fe0c993cd768616bc5d34e39bd5e31fa2db;hpb=07d6c1c19f1ca78bf3c60183447dee9f80a40bbd;p=xboard.git diff --git a/winboard/makefile.gcc b/winboard/makefile.gcc index 43fb4fe..aea08d9 100644 --- a/winboard/makefile.gcc +++ b/winboard/makefile.gcc @@ -12,6 +12,7 @@ OBJS=backend.o book.o gamelist.o lists.o moves.o pgntags.o uci.o zippy.o\ # make compiling less spammy compile = @echo "$1"; $(CC) $(CFLAGS) $1 +compile = $(CC) $(CFLAGS) $1 # Debugging? @@ -37,6 +38,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 +53,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 +71,8 @@ $(PROJ).hlp : $(PROJ).rtf # Update the resource if necessary -wbres.o: $(RESDEPS) +#wbres.o: $(RESDEPS) +wbres.o: $(PROJ).rc $(PROJ).h resource.h windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@