File: Makefile.am

package info (click to toggle)
openhpi 2.14.1-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 20,380 kB
  • sloc: ansic: 187,087; cpp: 32,188; sh: 10,415; makefile: 4,467; perl: 1,529
file content (96 lines) | stat: -rw-r--r-- 2,899 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# (C) Copyright IBM Corp 2003, 2006
# All rights reserved.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
# file and program are licensed under a BSD style license. See
# the Copying file included with the OpenHPI distribution for
# full licensing terms.

MAINTAINERCLEANFILES = Makefile.in

# Generated files - need to keep in sync with t/Makefile.am
GENERATED_EVENT_XML_MAP = event.xml
GENERATED_EVENT_CODE = el2event.c
GENERATED_CODE = $(GENERATED_EVENT_XML_MAP) $(GENERATED_EVENT_CODE)

MOSTLYCLEANFILES = @TEST_CLEAN@
MOSTLYCLEANFILES += $(GENERATED_CODE)

SNMPUTILSDIR = $(top_srcdir)/$(SNMPDIR)
SNMPUTILBDIR = $(top_builddir)/$(SNMPDIR)

SUBDIRS	= t

INCLUDES = @OPENHPI_INCLUDES@ -I$(top_srcdir)/snmp -I$(SNMPUTILSDIR)

AM_CFLAGS = @SNMPFLAGS@

pkglib_LTLIBRARIES = libsnmp_bc.la

EXTRA_DIST = \
		bc2hpi.pdf \
		eventmap2code.pl \
		snmp_bc_event.map \
		snmp_bc.h \
		snmp_bc_annunciator.h \
		snmp_bc_control.h \
		snmp_bc_discover.h \
		snmp_bc_discover_bc.h \
		snmp_bc_el.h \
		snmp_bc_el2event.h \
		snmp_bc_event.h \
		snmp_bc_hotswap.h \
		snmp_bc_inventory.h \
		snmp_bc_plugin.h \
		snmp_bc_power.h \
		snmp_bc_reset.h \
		snmp_bc_resources.h \
	     	snmp_bc_sel.h \
		snmp_bc_sensor.h \
		snmp_bc_session.h \
		snmp_bc_time.h \
		snmp_bc_utils.h \
		snmp_bc_watchdog.h \
		snmp_bc_lock.h \
		sim_init.h

# Generated files must be listed first
libsnmp_bc_la_SOURCES = \
			sim_init.c \
			snmp_bc.c \
			snmp_bc_annunciator.c \
			snmp_bc_control.c \
			snmp_bc_discover.c \
			snmp_bc_discover_bc.c \
			snmp_bc_discover_rsa.c \
			snmp_bc_event.c \
			snmp_bc_hotswap.c \
			snmp_bc_inventory.c \
			snmp_bc_power.c \
			snmp_bc_reset.c \
			snmp_bc_resources.c \
			snmp_bc_resources_rsa.c \
	    		snmp_bc_sel.c \
			snmp_bc_sensor.c \
			snmp_bc_session.c \
	     		snmp_bc_time.c \
	     		snmp_bc_utils.c \
			snmp_bc_watchdog.c \
			snmp_bc_xml2event.c
nodist_libsnmp_bc_la_SOURCES = $(GENERATED_EVENT_CODE)

libsnmp_bc_la_LIBADD = -luuid @SNMPLIBS@ $(SNMPUTILBDIR)/libopenhpi_snmp.la $(top_builddir)/utils/libopenhpiutils.la
libsnmp_bc_la_LDFLAGS = -module -version-info @HPI_LIB_VERSION@
#libsnmp_bc_la_LDFLAGS = -module -avoid-version

# Note same rules and files are generated in the t sub-directory - Make sure
# you change the t/Makefile.am, if you change these
EVENT_MAP_FILE = $(top_srcdir)/plugins/snmp_bc/snmp_bc_event.map
EVENT_MAP_SCRIPT = $(top_srcdir)/plugins/snmp_bc/eventmap2code.pl
EVENT_XML_MAP_SCRIPT = $(top_srcdir)/scripts/text2cstr.pl

$(GENERATED_EVENT_CODE): $(EVENT_MAP_FILE) $(EVENT_MAP_SCRIPT) $(EVENT_XML_MAP_SCRIPT)
	$(EVENT_MAP_SCRIPT) -xml -idir $(top_srcdir)/plugins/snmp_bc -mapfile snmp_bc_event.map
	$(EVENT_XML_MAP_SCRIPT) -s eventxml $(GENERATED_EVENT_XML_MAP) > $(GENERATED_EVENT_CODE)