converted files from dos to unix format
[xboard.git] / winboard / makefile.gcc
index 43fb4fe..2e78c0b 100644 (file)
@@ -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"\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
@@ -49,14 +52,6 @@ CF = -c $(WARN) -pipe $(CFDEBUG) $(DEFS) -I. -I..
 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
@@ -75,7 +70,7 @@ $(PROJ).hlp : $(PROJ).rtf
 \r
 \r
 # Update the resource if necessary\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