Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / tools / Makefile.am
1 #
2 # Makefile.am --
3 #
4 #      Template to generate the tools Makefile.in using automake.
5 #
6 # Copyright (c) 1999 Frank Strauss, Technical University of Braunschweig.
7 #
8 # See the file "COPYING" for information on usage and redistribution
9 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10 #
11 # @(#) $Id: Makefile.am 8090 2008-04-18 12:56:29Z strauss $
12 #
13
14 INCLUDES                = -I../lib
15
16 EXTRA_DIST              = smidump.h shhopt.h \
17                           $(man_MANS) \
18                           dump-fig.c \
19                           dump-svg-script.js
20
21 bin_PROGRAMS            = smiquery smilint smidump smidiff smixlate
22
23 bin_SCRIPTS             = smistrip smicache
24
25 man_MANS                = smiquery.1 smilint.1 smidump.1 smidiff.1 \
26                           smistrip.1 smicache.1 smixlate.1
27
28 smiquery_SOURCES        = smiquery.c shhopt.c
29 smiquery_LDADD          = ../lib/libsmi.la
30
31 smilint_SOURCES         = smilint.c shhopt.c
32 smilint_LDADD           = ../lib/libsmi.la
33
34 smixlate_SOURCES        = smixlate.c shhopt.c dstring.h dstring.c
35 smixlate_LDADD          = ../lib/libsmi.la
36
37 dump-svg-script.h: dump-svg-script.js
38         (echo "const char *code =";cat dump-svg-script.js | sed -e 's/\\/&&/g;s/"/\\"/g;s/^/"/;s/$$/\\n"/'; echo ";") > dump-svg-script.h
39
40 dump-svg.o: dump-svg-script.h
41
42 smidump_SOURCES         = smidump.c smidump.h shhopt.c \
43                           dump-sming.c dump-smi.c dump-yang.c \
44                           dump-imports.c dump-types.c dump-tree.c \
45                           dump-mosy.c dump-corba.c dump-netsnmp.c \
46                           dump-jax.c dump-xml.c dump-identifiers.c \
47                           dump-metrics.c dump-cm.c dump-python.c \
48                           dump-perl.c dump-scli.c dump-xsd.c dump-sppi.c \
49                           dump-sizes.c dump-svg-script.h dump-svg.c \
50                           rea.h rea.c dump-compliance.c dump-boilerplate.c \
51                           dstring.h dstring.c \
52                           fortopat.h fortopat.c fprint.h fprint.c
53
54 smidump_LDADD           = ../lib/libsmi.la -lm
55
56 smidiff_SOURCES         = smidiff.c shhopt.c
57 smidiff_LDADD           = ../lib/libsmi.la
58
59 MOSTLYCLEANFILES        = dump-svg-script.h