1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29include $(SRC)/cmd/wbem/Makefile.wbem 30 31sparc_SUBDIRS = 32 33i386_SUBDIRS = 34 35ppc_SUBDIRS = 36 37COMMON_SUBDIRS = nfs 38 39SUBDIRS = $(COMMON_SUBDIRS) $($(ARCH)_SUBDIRS) 40 41OBJECTS = cmdgen_unshare.o cmdgen_unshareall.o 42 43LINT_OBJS = $(OBJECTS:%.o=%.ln) 44 45WBEM_PROV = cmd/wbem/provider/c 46 47GENERAL = $(ROOTWBEMINC) \ 48 $(SRC)/$(WBEM_PROV)/filesystems/wbem_nfs/nfs_share \ 49 $(SRC)/$(WBEM_PROV)/filesystems/wbem_nfs/include \ 50 $(SRC)/$(WBEM_PROV)/filesystems/common/cmdgeneration 51 52 53CPPFLAGS += -I. $(GENERAL:%=-I%) -D_REENTRANT -DPIC -D_TS_ERRNO 54 55CFLAGS += $(XREGSFLAG) $(C_BIGPICFLAGS) 56 57LINTFLAGS += -um 58LINTLIBS = $(LDLIBS.cmd) 59 60POFILES = $(OBJECTS:%.o=%.po) 61 62all:= TARGET = all 63clean:= TARGET = clean 64clobber:= TARGET = clobber 65install:= TARGET = install 66lint:= TARGET = lint 67check:= TARGET = check 68 69.KEEP_STATE: 70 71all: $(OBJECTS) ${SUBDIRS} 72 73catalog: $(POFILES) ${SUBDIRS} 74 75check: ${SUBDIRS} 76 $(CSTYLE) -p -P $(OBJECTS:%.o=%.c) *.h 77 $(HDRCHK) *.h 78 79clean: ${SUBDIRS} 80 $(RM) $(OBJECTS) $(LINT_OBJS) *.po 81 82install: all 83 84lint: $(LINT_OBJS) ${SUBDIRS} 85 $(LINT.c) $(LINTFLAGS) $(LINT_OBJS) $(LINTLIBS) 86 87FRC: 88 89${SUBDIRS}: FRC 90 cd $@; pwd; $(MAKE) $(TARGET) 91 92.WAIT: 93 94include $(SRC)/cmd/Makefile.targ 95