xref: /titanic_41/usr/src/cmd/zevadm/Makefile (revision ffacc4c18995665fffe3c01cdce2e14f424bc57c)
18f7d1b1aSAndreas Jaekel#
28f7d1b1aSAndreas Jaekel# CDDL HEADER START
38f7d1b1aSAndreas Jaekel#
48f7d1b1aSAndreas Jaekel# The contents of this file are subject to the terms of the
58f7d1b1aSAndreas Jaekel# Common Development and Distribution License (the "License").
68f7d1b1aSAndreas Jaekel# You may not use this file except in compliance with the License.
78f7d1b1aSAndreas Jaekel#
88f7d1b1aSAndreas Jaekel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98f7d1b1aSAndreas Jaekel# or http://www.opensolaris.org/os/licensing.
108f7d1b1aSAndreas Jaekel# See the License for the specific language governing permissions
118f7d1b1aSAndreas Jaekel# and limitations under the License.
128f7d1b1aSAndreas Jaekel#
138f7d1b1aSAndreas Jaekel# When distributing Covered Code, include this CDDL HEADER in each
148f7d1b1aSAndreas Jaekel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
158f7d1b1aSAndreas Jaekel# If applicable, add the following below this CDDL HEADER, with the
168f7d1b1aSAndreas Jaekel# fields enclosed by brackets "[]" replaced with your own identifying
178f7d1b1aSAndreas Jaekel# information: Portions Copyright [yyyy] [name of copyright owner]
188f7d1b1aSAndreas Jaekel#
198f7d1b1aSAndreas Jaekel# CDDL HEADER END
208f7d1b1aSAndreas Jaekel#
218f7d1b1aSAndreas Jaekel#
228f7d1b1aSAndreas Jaekel# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
238f7d1b1aSAndreas Jaekel# Use is subject to license terms.
248f7d1b1aSAndreas Jaekel#
258f7d1b1aSAndreas Jaekel
268f7d1b1aSAndreas JaekelPROG= 			zevadm
278f7d1b1aSAndreas Jaekel
288f7d1b1aSAndreas JaekelOBJS=			zevadm.o
298f7d1b1aSAndreas JaekelSRCS=			$(OBJS:%.o=%.c)
308f7d1b1aSAndreas Jaekel
318f7d1b1aSAndreas Jaekelinclude ../Makefile.cmd
328f7d1b1aSAndreas Jaekelinclude ../Makefile.cmd.64
338f7d1b1aSAndreas Jaekel
348f7d1b1aSAndreas JaekelCPPFLAGS += -I $(SRC)/common/util
358f7d1b1aSAndreas JaekelCPPFLAGS += -I $(SRC)/common/sys
368f7d1b1aSAndreas JaekelCPPFLAGS += -I $(SRC)/uts/common
378f7d1b1aSAndreas JaekelLINTFLAGS += -u
388f7d1b1aSAndreas Jaekel
39*ffacc4c1SAndreas JaekelLDLIBS += -lavl
40*ffacc4c1SAndreas Jaekel
418f7d1b1aSAndreas JaekelCERRWARN += -_gcc=-Wno-parentheses
428f7d1b1aSAndreas Jaekel
438f7d1b1aSAndreas Jaekel.KEEP_STATE:
448f7d1b1aSAndreas Jaekel
458f7d1b1aSAndreas Jaekelall: $(PROG)
468f7d1b1aSAndreas Jaekel
478f7d1b1aSAndreas Jaekelinstall: all $(ROOTUSRSBINPROG)
488f7d1b1aSAndreas Jaekel
498f7d1b1aSAndreas Jaekel$(PROG):	$(OBJS)
508f7d1b1aSAndreas Jaekel	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
518f7d1b1aSAndreas Jaekel	$(POST_PROCESS)
528f7d1b1aSAndreas Jaekel
538f7d1b1aSAndreas Jaekel%.o:	$(SRC)/common/util/%.c
548f7d1b1aSAndreas Jaekel	$(COMPILE.c) $(OUTPUT_OPTION) $<
558f7d1b1aSAndreas Jaekel	$(POST_PROCESS_O)
568f7d1b1aSAndreas Jaekel
578f7d1b1aSAndreas Jaekelclean:
588f7d1b1aSAndreas Jaekel	$(RM) $(OBJS)
598f7d1b1aSAndreas Jaekel
608f7d1b1aSAndreas Jaekellint:	lint_SRCS
618f7d1b1aSAndreas Jaekel
628f7d1b1aSAndreas Jaekelinclude ../Makefile.targ
63