Date: Fri, 23 Jul 2004 02:41:49 GMT From: Wayne Salamon <wsalamon@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 57965 for review Message-ID: <200407230241.i6N2fn0c024683@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57965 Change 57965 by wsalamon@wsalamon_epi on 2004/07/23 02:41:13 Change to produce a shared library. Affected files ... .. //depot/projects/trustedbsd/audit3/contrib/bsm/lib/Makefile#3 edit Differences ... ==== //depot/projects/trustedbsd/audit3/contrib/bsm/lib/Makefile#3 (text+ko) ==== @@ -1,9 +1,12 @@ -CFLAGS = -g -Wall -pipe -fno-common +## +## Makefile for the BSM library. +## +CFLAGS = -g -Wall -fPIC GCC=gcc AR=ar -LIBCFLAGS = $(CFLAGS) -I/usr/include -I. -LIB_NAME=libbsm.a +LIBCFLAGS = -g -Wall -shared -I/usr/include -I. +LIB_NAME=libbsm.so LIBCURVERS=1.0 LIBCOMPATVERS=1.0 @@ -13,22 +16,22 @@ all: $(LIB_NAME) $(LIB_NAME): - $(GCC) $(LIBCFLAGS) -c bsm_audit.c - $(GCC) $(LIBCFLAGS) -c bsm_io.c - $(GCC) $(LIBCFLAGS) -c bsm_class.c - $(GCC) $(LIBCFLAGS) -c bsm_control.c - $(GCC) $(LIBCFLAGS) -c bsm_event.c - $(GCC) $(LIBCFLAGS) -c bsm_flags.c - $(GCC) $(LIBCFLAGS) -c bsm_mask.c - $(GCC) $(LIBCFLAGS) -c bsm_token.c - $(GCC) $(LIBCFLAGS) -c bsm_user.c - $(GCC) $(LIBCFLAGS) -c lib_wrappers.c + $(GCC) $(CFLAGS) -c bsm_audit.c + $(GCC) $(CFLAGS) -c bsm_io.c + $(GCC) $(CFLAGS) -c bsm_class.c + $(GCC) $(CFLAGS) -c bsm_control.c + $(GCC) $(CFLAGS) -c bsm_event.c + $(GCC) $(CFLAGS) -c bsm_flags.c + $(GCC) $(CFLAGS) -c bsm_mask.c + $(GCC) $(CFLAGS) -c bsm_token.c + $(GCC) $(CFLAGS) -c bsm_user.c + $(GCC) $(CFLAGS) -c lib_wrappers.c ## ## bsm_notify is not compiled for now; needs ported to FreeBSD if we decide ## to use it. ## -## $(GCC) $(LIBCFLAGS) -c bsm_notify.c - $(AR) -r $(LIB_NAME) *.o +## $(GCC) $(CFLAGS) -c bsm_notify.c + $(GCC) $(LIBCFLAGS) -o $(LIB_NAME) *.o install: $(LIB_NAME) install -d /usr/lib
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407230241.i6N2fn0c024683>