# generated by 'RPSLSyntax.java' - DO NOT HAND-EDIT

all: $(RIPLIBDIR)/librpsl.a $(RIPINCDIR)/syntax_api.h

$(RIPINCDIR)/syntax_api.h: syntax_api.h
	rm -f $(RIPINCDIR)/syntax_api.h
	ln -s syntax_api.h $(RIPINCDIR)/syntax_api.h

$(RIPLIBDIR)/librpsl.a: syntax_api.o class.o attribute.o syntax.o\
        members_is.lex.o members_is.tab.o \
        members_rs.lex.o members_rs.tab.o \
        filter.lex.o filter.tab.o \
        components.lex.o components.tab.o \
        aggr_mtd.lex.o aggr_mtd.tab.o \
        aggr_bndry.lex.o aggr_bndry.tab.o \
        default.lex.o default.tab.o \
        export.lex.o export.tab.o \
        import.lex.o import.tab.o \
        ifaddr.lex.o ifaddr.tab.o \
        inject.lex.o inject.tab.o \
        peering.lex.o peering.tab.o \
        peer.lex.o peer.tab.o
	ar -r $(RIPLIBDIR)/librpsl.a $?
	ar -r $(RIPLIBDIR)/librip.a $?

members_is.lex.o: members_is.lex.c members_is.tab.h
	$(CC) $(CFLAGS) -c members_is.lex.c

members_is.tab.o: members_is.tab.c members_is.tab.h
	$(CC) $(CFLAGS) -c members_is.tab.c

members_is.lex.c: members_is.l
	flex -i -Pmembers_is -omembers_is.lex.c members_is.l

members_is.tab.c members_is.tab.h: members_is.y
	bison -d -pmembers_is members_is.y

members_rs.lex.o: members_rs.lex.c members_rs.tab.h
	$(CC) $(CFLAGS) -c members_rs.lex.c

members_rs.tab.o: members_rs.tab.c members_rs.tab.h
	$(CC) $(CFLAGS) -c members_rs.tab.c

members_rs.lex.c: members_rs.l
	flex -i -Pmembers_rs -omembers_rs.lex.c members_rs.l

members_rs.tab.c members_rs.tab.h: members_rs.y
	bison -d -pmembers_rs members_rs.y

filter.lex.o: filter.lex.c filter.tab.h
	$(CC) $(CFLAGS) -c filter.lex.c

filter.tab.o: filter.tab.c filter.tab.h
	$(CC) $(CFLAGS) -c filter.tab.c

filter.lex.c: filter.l
	flex -i -Pfilter -ofilter.lex.c filter.l

filter.tab.c filter.tab.h: filter.y
	bison -d -pfilter filter.y

components.lex.o: components.lex.c components.tab.h
	$(CC) $(CFLAGS) -c components.lex.c

components.tab.o: components.tab.c components.tab.h
	$(CC) $(CFLAGS) -c components.tab.c

components.lex.c: components.l
	flex -i -Pcomponents -ocomponents.lex.c components.l

components.tab.c components.tab.h: components.y
	bison -d -pcomponents components.y

aggr_mtd.lex.o: aggr_mtd.lex.c aggr_mtd.tab.h
	$(CC) $(CFLAGS) -c aggr_mtd.lex.c

aggr_mtd.tab.o: aggr_mtd.tab.c aggr_mtd.tab.h
	$(CC) $(CFLAGS) -c aggr_mtd.tab.c

aggr_mtd.lex.c: aggr_mtd.l
	flex -i -Paggr_mtd -oaggr_mtd.lex.c aggr_mtd.l

aggr_mtd.tab.c aggr_mtd.tab.h: aggr_mtd.y
	bison -d -paggr_mtd aggr_mtd.y

aggr_bndry.lex.o: aggr_bndry.lex.c aggr_bndry.tab.h
	$(CC) $(CFLAGS) -c aggr_bndry.lex.c

aggr_bndry.tab.o: aggr_bndry.tab.c aggr_bndry.tab.h
	$(CC) $(CFLAGS) -c aggr_bndry.tab.c

aggr_bndry.lex.c: aggr_bndry.l
	flex -i -Paggr_bndry -oaggr_bndry.lex.c aggr_bndry.l

aggr_bndry.tab.c aggr_bndry.tab.h: aggr_bndry.y
	bison -d -paggr_bndry aggr_bndry.y

default.lex.o: default.lex.c default.tab.h
	$(CC) $(CFLAGS) -c default.lex.c

default.tab.o: default.tab.c default.tab.h
	$(CC) $(CFLAGS) -c default.tab.c

default.lex.c: default.l
	flex -i -Pdefault -odefault.lex.c default.l

default.tab.c default.tab.h: default.y
	bison -d -pdefault default.y

export.lex.o: export.lex.c export.tab.h
	$(CC) $(CFLAGS) -c export.lex.c

export.tab.o: export.tab.c export.tab.h
	$(CC) $(CFLAGS) -c export.tab.c

export.lex.c: export.l
	flex -i -Pexport -oexport.lex.c export.l

export.tab.c export.tab.h: export.y
	bison -d -pexport export.y

import.lex.o: import.lex.c import.tab.h
	$(CC) $(CFLAGS) -c import.lex.c

import.tab.o: import.tab.c import.tab.h
	$(CC) $(CFLAGS) -c import.tab.c

import.lex.c: import.l
	flex -i -Pimport -oimport.lex.c import.l

import.tab.c import.tab.h: import.y
	bison -d -pimport import.y

ifaddr.lex.o: ifaddr.lex.c ifaddr.tab.h
	$(CC) $(CFLAGS) -c ifaddr.lex.c

ifaddr.tab.o: ifaddr.tab.c ifaddr.tab.h
	$(CC) $(CFLAGS) -c ifaddr.tab.c

ifaddr.lex.c: ifaddr.l
	flex -i -Pifaddr -oifaddr.lex.c ifaddr.l

ifaddr.tab.c ifaddr.tab.h: ifaddr.y
	bison -d -pifaddr ifaddr.y

inject.lex.o: inject.lex.c inject.tab.h
	$(CC) $(CFLAGS) -c inject.lex.c

inject.tab.o: inject.tab.c inject.tab.h
	$(CC) $(CFLAGS) -c inject.tab.c

inject.lex.c: inject.l
	flex -i -Pinject -oinject.lex.c inject.l

inject.tab.c inject.tab.h: inject.y
	bison -d -pinject inject.y

peering.lex.o: peering.lex.c peering.tab.h
	$(CC) $(CFLAGS) -c peering.lex.c

peering.tab.o: peering.tab.c peering.tab.h
	$(CC) $(CFLAGS) -c peering.tab.c

peering.lex.c: peering.l
	flex -i -Ppeering -opeering.lex.c peering.l

peering.tab.c peering.tab.h: peering.y
	bison -d -ppeering peering.y

peer.lex.o: peer.lex.c peer.tab.h
	$(CC) $(CFLAGS) -c peer.lex.c

peer.tab.o: peer.tab.c peer.tab.h
	$(CC) $(CFLAGS) -c peer.tab.c

peer.lex.c: peer.l
	flex -i -Ppeer -opeer.lex.c peer.l

peer.tab.c peer.tab.h: peer.y
	bison -d -ppeer peer.y

