Date: Tue, 31 May 2005 19:32:17 GMT From: Andrew Reisse <areisse@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 77778 for review Message-ID: <200505311932.j4VJWHuw060376@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=77778 Change 77778 by areisse@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505311932.j4VJWHuw060376>