summaryrefslogtreecommitdiffstats
path: root/isys/Makefile
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-03-13 20:57:08 +0000
committerJeremy Katz <katzj@redhat.com>2006-03-13 20:57:08 +0000
commit090c6cb5f267e080bf62abc8ea88c4b973459a3a (patch)
tree317ecd027b999c7e63ae30f6cce4792a2bfff393 /isys/Makefile
parentb1e28e099a9c3edfd76abdad0a2442f2649dab7b (diff)
downloadanaconda-090c6cb5f267e080bf62abc8ea88c4b973459a3a.tar.gz
anaconda-090c6cb5f267e080bf62abc8ea88c4b973459a3a.tar.xz
anaconda-090c6cb5f267e080bf62abc8ea88c4b973459a3a.zip
2006-03-13 Matt Wilson <msw@rpath.com>
* Makefile.inc: Add flag for whether or not to use SELinux. * isys/Makefile: Conditionalize SELinux. * isys/isys.c: Likewise. * loader2/Makefile: Likewise.
Diffstat (limited to 'isys/Makefile')
-rw-r--r--isys/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/isys/Makefile b/isys/Makefile
index 64325cc86..26581fa6f 100644
--- a/isys/Makefile
+++ b/isys/Makefile
@@ -8,7 +8,11 @@ OBJECTS = nfsmount.o nfsmount_clnt.o nfsmount_xdr.o imount.o getmacaddr.o \
ethtool.o getipaddr.o wireless.o eddsupport.o
SOBJECTS = $(patsubst %.o,%.lo,$(OBJECTS))
SOURCES = $(patsubst %.o,%.c,$(OBJECTS)) isys.c
-LOADLIBES = -lresolv -lpci -lpopt -lpump -lext2fs -lz -lkudzu -lpci -ldevmapper -lselinux -lsepol
+LOADLIBES = -lresolv -lpci -lpopt -lpump -lext2fs -lz -lkudzu -lpci -ldevmapper
+ifeq ($(USESELINUX),1)
+LOADLIBES += -lselinux -lsepol
+SELINUXFLAGS = -DUSESELINUX=1
+endif
PYMODULES = _isys.so
SUBDIRS = gzlib
DIET = diet
@@ -45,7 +49,7 @@ all: subdirs $(PYMODULES) libisys.a $(DIETLIB)
$(CC) -c $(CFLAGS) -fPIC -o $@ $<
%.do: %.c
- $(DIET) $(CC) -c $(CFLAGS) -DGZLIB=1 -DDIET=1 "-Du_char=unsigned char" -o $@ $<
+ $(DIET) $(CC) -c $(CFLAGS) -DGZLIB=1 -DDIET=1 "-Du_char=unsigned char" -o $(SELINUXFLAGS) $@ $<
_isys.so: isys.lo $(SOBJECTS)
gcc -shared -g -fPIC -o $@ isys.lo $(SOBJECTS) $(LOADLIBES)