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
14INCLUDES		= -I../lib
15
16EXTRA_DIST		= smidump.h shhopt.h \
17			  $(man_MANS) \
18			  dump-fig.c \
19			  dump-svg-script.js
20
21bin_PROGRAMS		= smiquery smilint smidump smidiff smixlate
22
23bin_SCRIPTS		= smistrip smicache
24
25man_MANS		= smiquery.1 smilint.1 smidump.1 smidiff.1 \
26			  smistrip.1 smicache.1 smixlate.1
27
28smiquery_SOURCES	= smiquery.c shhopt.c
29smiquery_LDADD		= ../lib/libsmi.la
30
31smilint_SOURCES		= smilint.c shhopt.c
32smilint_LDADD		= ../lib/libsmi.la
33
34smixlate_SOURCES	= smixlate.c shhopt.c dstring.h dstring.c
35smixlate_LDADD		= ../lib/libsmi.la
36
37dump-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
40dump-svg.o: dump-svg-script.h
41
42smidump_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
54smidump_LDADD		= ../lib/libsmi.la -lm
55
56smidiff_SOURCES		= smidiff.c shhopt.c
57smidiff_LDADD		= ../lib/libsmi.la
58
59MOSTLYCLEANFILES	= dump-svg-script.h
60