7
include ../makearch/$(ARCH)
9
INCS = -I. -I../cdt -I..
11
DEFINES = -DHAVE_CONFIG_H
13
OBJS = apply.o attr.o edge.o agerror.o flatten.o \
14
grammar.o graph.o id.o imap.o io.o mem.o \
15
node.o obj.o pend.o rec.o refstr.o scan.o \
16
subg.o utils.o write.o
19
$(AR) cr $(LIBNAME) $(OBJS)
22
# this is a home-made tool
24
# triegen < trie_input > trie.c
30
$(SED) "s/yy/aag/g" < y.tab.c > grammar.c
31
$(SED) "s/yy/aag/g" < y.tab.h > grammar.h
36
$(SED) "s/yy/aag/g" < lex.yy.c > scan.c
41
$(INSTALL) $(LIBNAME) $(LIBDIR)
42
# $(SHLIB_LD) -o $(LIBDIR)/libagraph.so.$(VERSION) $(OBJS)
44
$(INSTALL) agraph.h $(INCDIR)
45
$(MKPATH) $(LIBMANDIR)
46
$(INSTALL) agraph.3 $(LIBMANDIR)
49
$(RM) *.o core grammar.[ch] scan.c