X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xshogi%2FMakefile.in;h=3100f2d5d4343f9bcd4a1dc5a04f08222825039c;hb=597bdc54b866e7578023a56e2b340d9877792ebf;hp=84aca20356d175a2f1276ce3803d21a9fbaff3d3;hpb=829c253a7cc2d3e1a9ed643485c1b1a92967b5df;p=gnushogi.git diff --git a/xshogi/Makefile.in b/xshogi/Makefile.in index 84aca20..3100f2d 100644 --- a/xshogi/Makefile.in +++ b/xshogi/Makefile.in @@ -29,7 +29,6 @@ # SHELL = /bin/sh -VERS = 1.3 INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -84,7 +83,7 @@ SECOND_HOST = -DSECOND_HOST=\"@SECOND_HOST@\" all: xshogi xshogi: - $(CC) -o xshogi xshogi.o parser.o $(CFLAGS) $(LDFLAGS) + $(CC) -o xshogi xshogi.o parser.o scanner.o $(CFLAGS) $(LDFLAGS) xshogi.o: xshogi.c $(CC) -c $< $(CWARNINGS) $(CFLAGS) \ @@ -99,10 +98,13 @@ xshogi.o: xshogi.c parser.o: parser.c $(CC) $(CFLAGS) -I$(SRCDIR) -c $< +scanner.o: scanner.c parser.h + $(CC) $(CFLAGS) -I$(SRCDIR) -c $< -parser.c: parser.y - $(YACC) $< +parser.c parser.h: parser.y + $(YACC) -d $< mv y.tab.c parser.c + mv y.tab.h parser.h scanner.c: scanner.l $(LEX) $< @@ -144,7 +146,7 @@ clean: # Dependencies. # -xshogi: xshogi.o parser.o +xshogi: xshogi.o parser.o scanner.o xshogi.o: xshogi.c $(SRCDIR)/sysdeps.h $(SRCDIR)/xshogi.h $(SRCDIR)/bitmaps.h ../config.h parser.o: parser.c $(SRCDIR)/xshogi.h parser.c: parser.y scanner.c