File: Makefile.am

package info (click to toggle)
openhpi 3.8.0-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 31,792 kB
  • sloc: ansic: 225,326; cpp: 63,687; java: 16,472; cs: 15,161; python: 11,884; sh: 11,508; makefile: 4,945; perl: 1,529; xml: 36; asm: 13
file content (101 lines) | stat: -rw-r--r-- 3,377 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
97
98
99
100
101
#
# Copyright (c) 2003 Intel Corporation
# (C) Copyright IBM Corp 2003, 2004
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the distribution.
#
# Neither the name of Intel Corporation nor the names
# of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = -DG_LOG_DOMAIN=\"utils\" @CRYPT_FLAG@
AM_CFLAGS = @CRYPT_FLAG@


GENERATED_HEADER_FILES = \
			sahpi_enum_utils.h \
			sahpixtca_enum_utils.h \
			sahpiatca_enum_utils.h \
			sahpi_event_encode.h

GENERATED_SRC_FILES = \
			sahpi_enum_utils.c \
			sahpixtca_enum_utils.c \
			sahpiatca_enum_utils.c \
			sahpi_event_encode.c

GENERATED_FILES = $(GENERATED_HEADER_FILES) $(GENERATED_SRC_FILES)

EXTRA_DIST = Makefile.mingw32 version.rc

MOSTLYCLEANFILES = @TEST_CLEAN@
# FIXME:: Add when we can auto-generate files for SMP systems
# MOSTLYCLEANFILES += $(GENERATED_FILES)

AM_CPPFLAGS += @OPENHPI_INCLUDES@

SUBDIRS = t
DIST_SUBDIRS = t

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = openhpiutils.pc

lib_LTLIBRARIES = libopenhpiutils.la

# Generated files (e.g.sahpi_enum_utils.c) must be listed first
libopenhpiutils_la_SOURCES = \
    $(GENERATED_SRC_FILES) \
    $(GENERATED_HEADER_FILES) \
    announcement_utils.c \
    announcement_utils.h \
    el_utils.c \
    el_utils.h \
    event_utils.c \
    event_utils.h \
    epath_utils.c \
    epath_utils.h \
    oh_utils.h \
    rpt_utils.c \
    rpt_utils.h \
    sahpi_event_utils.c \
    sahpi_event_utils.h \
    sahpi_struct_utils.c \
    sahpi_struct_utils.h \
    sahpi_time_utils.c \
    sahpi_time_utils.h \
    sahpi_gcrypt_utils.c \
    sahpi_gcrypt_utils.h \
    sahpi_wrappers.c \
    sahpi_wrappers.h \
    uid_utils.c \
    uid_utils.h

libopenhpiutils_la_LDFLAGS = -version-info @HPI_LIB_VERSION@
libopenhpiutils_la_LIBADD = @GCRYPT_LIB@ @SSL_LIB@ -lm -lpthread

# FIXME:: Add when we can auto-generate files for SMP systems
#$(GENERATED_FILES): $(top_srcdir)/include/SaHpi.h $(top_srcdir)/scripts/SaHpi2code.pl
#	$(top_srcdir)/scripts/SaHpi2code.pl -ifile $(top_srcdir)/include/SaHpi.h