summaryrefslogtreecommitdiffstats
path: root/isys/Makefile.am
blob: 32ba64cd9e315196452e3f9a85760c19d2246de0 (plain)
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
# isys/Makefile.am for anaconda
#
# Copyright (C) 2009  Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# 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.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Author: David Cantrell <dcantrell@redhat.com>

ISYS_SRCS = devices.c imount.c cpio.c uncpio.c lang.c \
            isofs.c linkdetect.c vio.c ethtool.c eddsupport.c iface.c \
            str.c auditd.c

if IS_PPC
ISYS_SRCS += minifind.c
endif

dist_noinst_HEADERS = *.h

ISYS_CFLAGS = -DVERSION='"$(PACKAGE_VERSION)"' $(NFS_CFLAGS) \
              $(NETWORKMANAGER_CFLAGS) $(LIBNL_CFLAGS) $(LIBNM_GLIB_CFLAGS) \
              $(SELINUX_CFLAGS)
ISYS_LIBS   = $(RESOLV_LIBS) $(EXT2FS_LIBS) $(ZLIB_LIBS) \
              $(DEVMAPPER_LIBS) $(BLKID_LIBS) $(X11_LIBS) $(SELINUX_LIBS) \
              $(LIBNL_LIBS) $(LIBNM_GLIB_LIBS)

isysdir = $(libdir)/$(PACKAGE_NAME)
isys_PYTHON = *.py

pkgpyexecdir = $(libdir)/$(PACKAGE_NAME)
pkgpythondir = $(libdir)/$(PACKAGE_NAME)

pkgpyexec_LTLIBRARIES = _isys.la
_isys_la_CFLAGS       = $(PYTHON_INCLUDES) $(ISYS_CFLAGS)
_isys_la_LDFLAGS      = -module -avoid-version $(PYTHON_LDFLAGS)
_isys_la_LIBADD       = $(PYTHON_LIBS) $(ISYS_LIBS)
_isys_la_SOURCES      = isys.c $(ISYS_SRCS)

noinst_LTLIBRARIES    = libisys.la
libisys_la_CFLAGS     = $(ISYS_CFLAGS)
libisys_la_LDFLAGS    = -static
libisys_la_LIBADD     = $(ISYS_LIBS)
libisys_la_SOURCES    = $(ISYS_SRCS)

MAINTAINERCLEANFILES = Makefile.in