PERFORCE change 57965 for review
Wayne Salamon
wsalamon at FreeBSD.org
Fri Jul 23 02:41:49 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=57965
Change 57965 by wsalamon at 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
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