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

« back to all changes in this revision

Viewing changes to tcldot/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
include ../Config.mk
 
3
include ../makearch/$(ARCH)
 
4
 
 
5
PACKAGE         = Tcldot
 
6
OBJS            = tcldot.o tkgen.o tclhandle.o
 
7
 
 
8
INCS =  -I. -I.. \
 
9
        -I../graph \
 
10
        -I../pathplan \
 
11
        -I../cdt \
 
12
        -I../gd \
 
13
        -I../dotneato/dotgen \
 
14
        -I../dotneato/common \
 
15
        -I../tclhandle \
 
16
        -I$(TCL_INCDIR)
 
17
 
 
18
LIBS =  ../gdtclft/libgdtclft.a \
 
19
        ../dotneato/common/libdotneato.a \
 
20
        ../dotneato/dotgen/libdot.a \
 
21
        ../dotneato/neatogen/libneato.a \
 
22
        ../graph/libgraph.a \
 
23
        ../pathplan/libpathplan.a \
 
24
        ../gd/libgd.a \
 
25
        ../cdt/libcdt.a \
 
26
         $(EXTLIB_LIB)
 
27
 
 
28
_VERSION_NUM = 1.7.3
 
29
LDLL        = libtcldot$(SHLIB_SUFFIX).$(_VERSION_NUM)
 
30
DLL         = $(PACKAGE)$(SHLIB_SUFFIX)
 
31
PACKAGEDIR      = $(TCL_PKGDIR)/$(PACKAGE)
 
32
 
 
33
DEFINES = -D_BLD_tcldot
 
34
 
 
35
all: libtcldot.a $(LDLL) TcldotIndex.tcl
 
36
 
 
37
tcldot.o : tcldot.c
 
38
        $(CC) -c -DDATE="\"`date`\"" $(CCFLAGS) $(DEFINES) $(INCS) tcldot.c
 
39
 
 
40
$(LDLL): $(OBJS)
 
41
        $(SHLIB_LD) -o $@ $(OBJS) $(LIBS)
 
42
 
 
43
TcldotIndex.tcl:
 
44
        echo 'package ifneeded $(PACKAGE) $(_VERSION_NUM) [list load [file join $$dir $(DLL).$(_VERSION_NUM)] $(PACKAGE)]' > TcldotIndex.tcl
 
45
 
 
46
install: all
 
47
        $(MKPATH) $(LIBDIR)
 
48
        $(INSTALL) libtcldot.a $(LIBDIR)
 
49
        $(MKPATH) $(PACKAGEDIR)
 
50
        $(INSTALL) $(LDLL) $(PACKAGEDIR)/$(DLL)
 
51
        $(INSTALL) $(LDLL) $(PACKAGEDIR)/$(DLL).$(_VERSION_NUM)
 
52
        $(INSTALL) TcldotIndex.tcl $(PACKAGEDIR)/pkgIndex.tcl
 
53
 
 
54
clean: 
 
55
        rm -f *.[oa] core 
 
56
 
 
57
distclean: clean
 
58
        rm -f $(LDLL) TcldotIndex.tcl
 
59
 
 
60
libtcldot.a : $(OBJS)
 
61
        $(AR) cr libtcldot.a $(OBJS)
 
62
        $(RANLIB) libtcldot.a
 
63
 
 
64
tclhandle.o : ../tclhandle/tclhandle.c
 
65
        $(CC) -c $(CCFLAGS) $(DEFINES) $(INCS) $?