1*2bb8e5e2SAndreas Jaekel# 2*2bb8e5e2SAndreas Jaekel# CDDL HEADER START 3*2bb8e5e2SAndreas Jaekel# 4*2bb8e5e2SAndreas Jaekel# The contents of this file are subject to the terms of the 5*2bb8e5e2SAndreas Jaekel# Common Development and Distribution License (the "License"). 6*2bb8e5e2SAndreas Jaekel# You may not use this file except in compliance with the License. 7*2bb8e5e2SAndreas Jaekel# 8*2bb8e5e2SAndreas Jaekel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2bb8e5e2SAndreas Jaekel# or http://www.opensolaris.org/os/licensing. 10*2bb8e5e2SAndreas Jaekel# See the License for the specific language governing permissions 11*2bb8e5e2SAndreas Jaekel# and limitations under the License. 12*2bb8e5e2SAndreas Jaekel# 13*2bb8e5e2SAndreas Jaekel# When distributing Covered Code, include this CDDL HEADER in each 14*2bb8e5e2SAndreas Jaekel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2bb8e5e2SAndreas Jaekel# If applicable, add the following below this CDDL HEADER, with the 16*2bb8e5e2SAndreas Jaekel# fields enclosed by brackets "[]" replaced with your own identifying 17*2bb8e5e2SAndreas Jaekel# information: Portions Copyright [yyyy] [name of copyright owner] 18*2bb8e5e2SAndreas Jaekel# 19*2bb8e5e2SAndreas Jaekel# CDDL HEADER END 20*2bb8e5e2SAndreas Jaekel# 21*2bb8e5e2SAndreas Jaekel# 22*2bb8e5e2SAndreas Jaekel# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*2bb8e5e2SAndreas Jaekel# Use is subject to license terms. 24*2bb8e5e2SAndreas Jaekel# 25*2bb8e5e2SAndreas Jaekel 26*2bb8e5e2SAndreas JaekelPROG= zevadm 27*2bb8e5e2SAndreas Jaekel 28*2bb8e5e2SAndreas JaekelOBJS= zevadm.o 29*2bb8e5e2SAndreas JaekelSRCS= $(OBJS:%.o=%.c) 30*2bb8e5e2SAndreas Jaekel 31*2bb8e5e2SAndreas Jaekelinclude ../Makefile.cmd 32*2bb8e5e2SAndreas Jaekelinclude ../Makefile.cmd.64 33*2bb8e5e2SAndreas Jaekel 34*2bb8e5e2SAndreas JaekelCPPFLAGS += -I $(SRC)/common/util 35*2bb8e5e2SAndreas JaekelCPPFLAGS += -I $(SRC)/common/sys 36*2bb8e5e2SAndreas JaekelCPPFLAGS += -I $(SRC)/uts/common 37*2bb8e5e2SAndreas JaekelLINTFLAGS += -u 38*2bb8e5e2SAndreas Jaekel 39*2bb8e5e2SAndreas JaekelCERRWARN += -_gcc=-Wno-parentheses 40*2bb8e5e2SAndreas Jaekel 41*2bb8e5e2SAndreas Jaekel.KEEP_STATE: 42*2bb8e5e2SAndreas Jaekel 43*2bb8e5e2SAndreas Jaekelall: $(PROG) 44*2bb8e5e2SAndreas Jaekel 45*2bb8e5e2SAndreas Jaekelinstall: all $(ROOTUSRSBINPROG) 46*2bb8e5e2SAndreas Jaekel 47*2bb8e5e2SAndreas Jaekel$(PROG): $(OBJS) 48*2bb8e5e2SAndreas Jaekel $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 49*2bb8e5e2SAndreas Jaekel $(POST_PROCESS) 50*2bb8e5e2SAndreas Jaekel 51*2bb8e5e2SAndreas Jaekel%.o: $(SRC)/common/util/%.c 52*2bb8e5e2SAndreas Jaekel $(COMPILE.c) $(OUTPUT_OPTION) $< 53*2bb8e5e2SAndreas Jaekel $(POST_PROCESS_O) 54*2bb8e5e2SAndreas Jaekel 55*2bb8e5e2SAndreas Jaekelclean: 56*2bb8e5e2SAndreas Jaekel $(RM) $(OBJS) 57*2bb8e5e2SAndreas Jaekel 58*2bb8e5e2SAndreas Jaekellint: lint_SRCS 59*2bb8e5e2SAndreas Jaekel 60*2bb8e5e2SAndreas Jaekelinclude ../Makefile.targ 61