diff options
Diffstat (limited to 'usr/src/lib/libsec/Makefile.com')
-rw-r--r-- | usr/src/lib/libsec/Makefile.com | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/usr/src/lib/libsec/Makefile.com b/usr/src/lib/libsec/Makefile.com index b619caa0b7..0cf7541cd0 100644 --- a/usr/src/lib/libsec/Makefile.com +++ b/usr/src/lib/libsec/Makefile.com @@ -20,7 +20,7 @@ # CDDL HEADER END # # -# Copyright 2004 Sun Microsystems, Inc. All rights reserved. +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -31,48 +31,40 @@ LIBRARY= libsec.a VERS= .1 -OBJECTS= \ - aclcheck.o \ - aclmode.o \ - aclsort.o \ - acltext.o +OBJS_SHARED= acl_common.o +OBJS_COMMON= aclcheck.o aclmode.o aclsort.o acltext.o aclutils.o +OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED) # include library definitions include ../../Makefile.lib -# install this library in the root filesystem -include ../../Makefile.rootfs - -MAPFILE= $(MAPDIR)/mapfile -MAPOPTS= $(MAPFILE:%=-M %) -SRCS= $(OBJECTS:%.o=../common/%.c) - LIBS = $(DYNLIB) $(LINTLIB) -$(LINTLIB):= SRCS=../common/llib-lsec - -LINTSRC= $(LINTLIB:%.ln=%) - CFLAGS += $(CCVERBOSE) +CPPFLAGS += -I$(SRCDIR) -I../../../common/acl DYNFLAGS += $(MAPOPTS) -LDLIBS += -lc +LDLIBS += -lc -.KEEP_STATE: +# install this library in the root filesystem +include ../../Makefile.rootfs -lint: lintcheck +SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ + $(OBJS_SHARED:%.o=$(SRC)/common/acl/%.c) -$(DYNLIB): $(MAPFILE) +$(LINTLIB):= SRCS= $(SRCDIR)/$(LINTSRC) -$(MAPFILE): - @cd $(MAPDIR); $(MAKE) mapfile +SRCDIR= ../common +MAPDIR= ../spec/$(TRANSMACH) +SPECMAPFILE= $(MAPDIR)/mapfile -# include library targets -include ../../Makefile.targ +.KEEP_STATE: -pics/%.o: ../common/%.c +all: $(LIBS) + +lint: lintcheck + +pics/%.o: ../../../common/acl/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) -# install rule for lint library target -$(ROOTLINTDIR)/%: ../common/% - $(INS.file) +include ../../Makefile.targ |