PERFORCE change 77778 for review
Andrew Reisse
areisse at FreeBSD.org
Tue May 31 19:32:17 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=77778
Change 77778 by areisse at areisse_ibook on 2005/05/31 19:31:22
Makefile changes for libsepol (config, don't build shared libraries,
install in export directory).
You must have a manually installed sys/endian.h to build this currently.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/libsepol/src/Makefile#2 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/libsepol/src/Makefile#2 (text+ko) ====
@@ -1,3 +1,5 @@
+include ../../../Makeconfig
+
# Installation directories.
PREFIX ?= $(DESTDIR)/usr
LIBDIR ?= $(PREFIX)/lib
@@ -8,21 +10,15 @@
# Set to y for MLS
MLS=n
-.if $(MLS) == "y"
-OPTIONS = -DCONFIG_SECURITY_SELINUX_MLS
-.else
-OPTIONS =
-.endif
-
LIBA=libsepol.a
-TARGET=libsepol.so
-LIBSO=$(TARGET).$(LIBVERSION)
+#TARGET=libsepol.so
+#LIBSO=$(TARGET).$(LIBVERSION)
OBJS= $(patsubst %.c,%.o,$(wildcard *.c))
-LOBJS= $(patsubst %.c,%.lo,$(wildcard *.c))
+#LOBJS= $(patsubst %.c,%.lo,$(wildcard *.c))
CFLAGS = -Wall $(OPTIONS)
override CFLAGS += -I. -I../include
-all: $(LIBA) $(LIBSO)
+all: $(LIBA)
$(LIBA): $(OBJS)
$(AR) rcs $@ $^
@@ -41,9 +37,9 @@
install: all
test -d $(LIBDIR) || install -m 755 -d $(LIBDIR)
install -m 644 $(LIBA) $(LIBDIR)
- test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR)
- install -m 755 $(LIBSO) $(SHLIBDIR)
- cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
+# test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR)
+# install -m 755 $(LIBSO) $(SHLIBDIR)
+# cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
clean:
rm -f $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(TARGET)
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list