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