usr/src/lib/libcmdutils/Makefile.com
changeset 12710 66c9c36f2046
parent 6812 febeba71273d
equal deleted inserted replaced
12709:237fa25a1db0 12710:66c9c36f2046
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 #
    21 #
    22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
    22 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
    23 # Use is subject to license terms.
       
    24 #
       
    25 # ident	"%Z%%M%	%I%	%E% SMI"
       
    26 #
    23 #
    27 
    24 
    28 LIBRARY=	libcmdutils.a
    25 LIBRARY=	libcmdutils.a
    29 VERS=		.1
    26 VERS=		.1
    30 OBJECTS=	avltree.o sysattrs.o writefile.o process_xattrs.o
    27 CMD_OBJS=	avltree.o sysattrs.o writefile.o process_xattrs.o
       
    28 COM_OBJS=	list.o
       
    29 OBJECTS=	$(CMD_OBJS) $(COM_OBJS)
    31 
    30 
    32 include ../../Makefile.lib
    31 include ../../Makefile.lib
    33 include ../../Makefile.rootfs
    32 include ../../Makefile.rootfs
    34 
    33 
    35 LIBS =		$(DYNLIB) $(LINTLIB)
    34 LIBS =		$(DYNLIB) $(LINTLIB)
    36 
    35 
    37 LDLIBS +=	-lc -lavl -lnvpair
    36 LDLIBS +=	-lc -lavl -lnvpair
    38 
    37 
    39 SRCDIR =	../common
    38 SRCDIR =	../common
       
    39 
       
    40 COMDIR= $(SRC)/common/list
       
    41 SRCS=	\
       
    42 	$(CMD_OBJS:%.o=$(SRCDIR)/%.c)   \
       
    43 	$(COM_OBJS:%.o=$(COMDIR)/%.c)
       
    44 
    40 $(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
    45 $(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
    41 
    46 
    42 CFLAGS +=	$(CCVERBOSE)
    47 CFLAGS +=	$(CCVERBOSE)
    43 
    48 
    44 # All commands using the common avltree interfaces must
    49 # All commands using the common avltree interfaces must
    49 
    54 
    50 all: $(LIBS)
    55 all: $(LIBS)
    51 
    56 
    52 lint: lintcheck
    57 lint: lintcheck
    53 
    58 
       
    59 pics/%.o: $(COMDIR)/%.c
       
    60 	$(COMPILE.c) -o $@ $<
       
    61 	$(POST_PROCESS_O)
       
    62 
    54 include ../../Makefile.targ
    63 include ../../Makefile.targ