X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xshogi%2FMakefile.in;h=3100f2d5d4343f9bcd4a1dc5a04f08222825039c;hb=597bdc54b866e7578023a56e2b340d9877792ebf;hp=d8849408c4ee4a205ba8b5b1e838b36af6e8d265;hpb=717503bac58f75de867fdda2c4a9562f715c52d6;p=gnushogi.git diff --git a/xshogi/Makefile.in b/xshogi/Makefile.in index d884940..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,8 +146,8 @@ clean: # Dependencies. # -xshogi: xshogi.o parser.o -xshogi.o: xshogi.c $(SRCDIR)/sysdeps.h $(SRCDIR)/xshogi.h $(SRCDIR)/bitmaps.h $(ROOT)/version.h ../config.h +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 scanner.c: scanner.l