1 # $Header: /cvsroot/pgpool/pgpool-II/test/parser/Makefile,v 1.1 2007/10/03 04:47:18 y-asaba Exp $
4 PGPOOL_SRC=../../parser
5 PARSER_OBJS=gram.o parser.o pool_string.o list.o makefuncs.o value.o nodes.o pool_memory.o main.o keywords.o outfuncs.o
13 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
15 $(PROGRAM): $(PARSER_OBJS)
16 gcc $(PARSER_OBJS) -o $(PROGRAM)
20 keywords.o: $(PGPOOL_SRC)/keywords.c
21 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
23 outfuncs.o: $(PGPOOL_SRC)/outfuncs.c
24 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
27 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
29 gram.c: $(PGPOOL_SRC)/gram.y $(PGPOOL_SRC)/scan.c
30 bison -d $(PGPOOL_SRC)/gram.y
31 mv -f gram.tab.c gram.c
32 mv -f gram.tab.h parse.h
34 pool_string.o : $(PGPOOL_SRC)/pool_string.c $(PGPOOL_SRC)/pool_string.h
35 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
37 parser.o : $(PGPOOL_SRC)/parser.c
38 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
40 list.o : $(PGPOOL_SRC)/list.c
41 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
43 makefuncs.o : $(PGPOOL_SRC)/makefuncs.c
44 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
46 value.o : $(PGPOOL_SRC)/value.c
47 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
49 nodes.o : $(PGPOOL_SRC)/nodes.c
50 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
52 scanner : scan.c $(PGPOOL_SRC)/keywords.h
53 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
56 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
58 scan.c : $(PGPOOL_SRC)/scan.l
61 pool_memory.o: $(PGPOOL_SRC)/pool_memory.c $(PGPOOL_SRC)/pool_memory.h
62 gcc -Wall -c -g -include pool.h -I. -I $(PGPOOL_SRC) $<
65 ./run-test parse_schedule