xref: /titanic_52/usr/src/cmd/zevadm/Makefile (revision 0abdde4ada1f3fbbe64a4bdddf53bb43bb73262a)
12bb8e5e2SAndreas Jaekel#
22bb8e5e2SAndreas Jaekel# CDDL HEADER START
32bb8e5e2SAndreas Jaekel#
42bb8e5e2SAndreas Jaekel# The contents of this file are subject to the terms of the
52bb8e5e2SAndreas Jaekel# Common Development and Distribution License (the "License").
62bb8e5e2SAndreas Jaekel# You may not use this file except in compliance with the License.
72bb8e5e2SAndreas Jaekel#
82bb8e5e2SAndreas Jaekel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92bb8e5e2SAndreas Jaekel# or http://www.opensolaris.org/os/licensing.
102bb8e5e2SAndreas Jaekel# See the License for the specific language governing permissions
112bb8e5e2SAndreas Jaekel# and limitations under the License.
122bb8e5e2SAndreas Jaekel#
132bb8e5e2SAndreas Jaekel# When distributing Covered Code, include this CDDL HEADER in each
142bb8e5e2SAndreas Jaekel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152bb8e5e2SAndreas Jaekel# If applicable, add the following below this CDDL HEADER, with the
162bb8e5e2SAndreas Jaekel# fields enclosed by brackets "[]" replaced with your own identifying
172bb8e5e2SAndreas Jaekel# information: Portions Copyright [yyyy] [name of copyright owner]
182bb8e5e2SAndreas Jaekel#
192bb8e5e2SAndreas Jaekel# CDDL HEADER END
202bb8e5e2SAndreas Jaekel#
212bb8e5e2SAndreas Jaekel#
222bb8e5e2SAndreas Jaekel# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
232bb8e5e2SAndreas Jaekel# Use is subject to license terms.
242bb8e5e2SAndreas Jaekel#
252bb8e5e2SAndreas Jaekel
262bb8e5e2SAndreas JaekelPROG= 			zevadm
272bb8e5e2SAndreas Jaekel
282bb8e5e2SAndreas JaekelOBJS=			zevadm.o
292bb8e5e2SAndreas JaekelSRCS=			$(OBJS:%.o=%.c)
302bb8e5e2SAndreas Jaekel
312bb8e5e2SAndreas Jaekelinclude ../Makefile.cmd
322bb8e5e2SAndreas Jaekelinclude ../Makefile.cmd.64
332bb8e5e2SAndreas Jaekel
342bb8e5e2SAndreas JaekelCPPFLAGS += -I $(SRC)/common/util
352bb8e5e2SAndreas JaekelCPPFLAGS += -I $(SRC)/common/sys
362bb8e5e2SAndreas JaekelCPPFLAGS += -I $(SRC)/uts/common
372bb8e5e2SAndreas JaekelLINTFLAGS += -u
382bb8e5e2SAndreas Jaekel
39*0abdde4aSAndreas JaekelLDLIBS += -lavl
40*0abdde4aSAndreas Jaekel
412bb8e5e2SAndreas JaekelCERRWARN += -_gcc=-Wno-parentheses
422bb8e5e2SAndreas Jaekel
432bb8e5e2SAndreas Jaekel.KEEP_STATE:
442bb8e5e2SAndreas Jaekel
452bb8e5e2SAndreas Jaekelall: $(PROG)
462bb8e5e2SAndreas Jaekel
472bb8e5e2SAndreas Jaekelinstall: all $(ROOTUSRSBINPROG)
482bb8e5e2SAndreas Jaekel
492bb8e5e2SAndreas Jaekel$(PROG):	$(OBJS)
502bb8e5e2SAndreas Jaekel	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
512bb8e5e2SAndreas Jaekel	$(POST_PROCESS)
522bb8e5e2SAndreas Jaekel
532bb8e5e2SAndreas Jaekel%.o:	$(SRC)/common/util/%.c
542bb8e5e2SAndreas Jaekel	$(COMPILE.c) $(OUTPUT_OPTION) $<
552bb8e5e2SAndreas Jaekel	$(POST_PROCESS_O)
562bb8e5e2SAndreas Jaekel
572bb8e5e2SAndreas Jaekelclean:
582bb8e5e2SAndreas Jaekel	$(RM) $(OBJS)
592bb8e5e2SAndreas Jaekel
602bb8e5e2SAndreas Jaekellint:	lint_SRCS
612bb8e5e2SAndreas Jaekel
622bb8e5e2SAndreas Jaekelinclude ../Makefile.targ
63