PROJ=winboard\r
\r
\r
-OBJS=backend.o book.o gamelist.o gamelistopt.o lists.o moves.o pgntags.o uci.o zippy.o\\r
+OBJS=backend.o book.o gamelist.o lists.o moves.o pgntags.o uci.o zippy.o\\r
parser.o wbres.o wclipbrd.o wedittags.o wengineoutput.o wevalgraph.o\\r
wgamelist.o whistory.o history.o winboard.o wlayout.o woptions.o wsnap.o\\r
wsockerr.o help.o wsettings.o wchat.o engineoutput.o evalgraph.o\r
\r
# set up for cygwin or not\r
ifeq ($(USE_MINGW),1)\r
-CFCYG = -mno-cygwin\r
+CFCYG = -mno-cygwin -DUSE_I64\r
LFCYG = -mno-cygwin -lmsvcrt\r
endif\r
\r
windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@\r
\r
\r
-# note: cygwin flex needs m4 package. cygwin-setup forgets this dependency\r
-# note2: use mingw flex instead... although I got cygwin's flex working (with m4),\r
-# it didn't produce a useable parser.c (1000's of errors)\r
-../parser.c: ../parser.l\r
- $(FLEX) -o../parser.c -L ../parser.l\r
-\r
-\r
$(PROJ).exe: $(OBJS) $(PROJ).hlp\r
$(CC) $(guiflags) $(OBJS) $(LFLAGS) -o $(PROJ).exe\r
\r
../backend.h ../parser.h\r
$(call compile, $<)\r
\r
-gamelistopt.o: ../gamelistopt.c config.h ../lists.h ../common.h ../frontend.h \\r
- ../backend.h\r
- $(call compile, $<)\r
-\r
wclipbrd.o: wclipbrd.c config.h ../common.h ../frontend.h ../backend.h \\r
winboard.h resource.h wclipbrd.h ../lists.h\r
$(call compile, $<)\r
../backend.h ../lists.h\r
$(call compile, $<)\r
\r
-wgamelist.o: wgamelist.c config.h. ../common.h winboard.h resource.h ../frontend.h \\r
+wgamelist.o: wgamelist.c config.h ../common.h winboard.h resource.h ../frontend.h \\r
../backend.h ../lists.h\r
$(call compile, $<)\r
\r