Make WinBoard makefiles use parser.c in XBoard directory
[xboard.git] / winboard / makefile.gcc
index 27cebc0..6bb84c8 100644 (file)
@@ -77,8 +77,8 @@ wbres.o: $(PROJ).rc $(PROJ).h resource.h config.h
 # 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) -oparser.c -L ../parser.l\r
+../parser.c: ../parser.l\r
+       $(FLEX) -o../parser.c -L ../parser.l\r
 \r
 \r
 $(PROJ).exe: $(OBJS) $(PROJ).hlp\r
@@ -94,7 +94,7 @@ backend.o: ../backend.c config.h ../common.h ../frontend.h ../backend.h \
        ../parser.h ../moves.h ../zippy.h ../backendz.h ../gettext.h ../lists.h\r
        $(call compile, $<)\r
 \r
-parser.o: parser.c config.h ../common.h ../backend.h ../parser.h \\r
+parser.o: ../parser.c config.h ../common.h ../backend.h ../parser.h \\r
        ../frontend.h ../moves.h ../lists.h\r
        $(call compile, $<)\r
 \r