~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to agraph/Makefile.IN

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
LIBNAME = libagraph.a
 
3
 
 
4
all:    $(LIBNAME)
 
5
 
 
6
include ../Config.mk
 
7
include ../makearch/$(ARCH)
 
8
 
 
9
INCS =  -I. -I../cdt -I..
 
10
 
 
11
DEFINES = -DHAVE_CONFIG_H
 
12
 
 
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
 
17
 
 
18
$(LIBNAME): $(OBJS)
 
19
        $(AR) cr $(LIBNAME) $(OBJS)
 
20
        $(RANLIB) $(LIBNAME)
 
21
 
 
22
# this is a home-made tool
 
23
# trie.c : trie_input
 
24
#       triegen  < trie_input > trie.c
 
25
 
 
26
lexer.o : grammar.o
 
27
 
 
28
grammar.c : grammar.y
 
29
        $(YACC) -dv grammar.y
 
30
        $(SED) "s/yy/aag/g" < y.tab.c > grammar.c
 
31
        $(SED) "s/yy/aag/g" < y.tab.h > grammar.h
 
32
        $(RM) y.tab.c y.tab.h
 
33
 
 
34
scan.c : scan.l
 
35
        $(FLEX) scan.l
 
36
        $(SED) "s/yy/aag/g" < lex.yy.c > scan.c
 
37
        $(RM) lex.yy.c
 
38
 
 
39
install: $(LIBNAME)
 
40
        $(MKPATH) $(LIBDIR)
 
41
        $(INSTALL) $(LIBNAME) $(LIBDIR)
 
42
#       $(SHLIB_LD) -o $(LIBDIR)/libagraph.so.$(VERSION) $(OBJS)
 
43
        $(MKPATH) $(INCDIR)
 
44
        $(INSTALL) agraph.h $(INCDIR)
 
45
        $(MKPATH) $(LIBMANDIR)
 
46
        $(INSTALL) agraph.3 $(LIBMANDIR)
 
47
 
 
48
clean:
 
49
        $(RM) *.o core grammar.[ch] scan.c
 
50
 
 
51
distclean: clean
 
52
        $(RM) *.a lib*.so.*