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_mount.o \ 42 cmdgen_mountall.o 43 44LINT_OBJS = $(OBJECTS:%.o=%.ln) 45 46GENERAL = $(ROOTWBEMINC) \ 47 $(SRC)/cmd/wbem/provider/c/filesystems/common/cmdgeneration 48 49 50CPPFLAGS += -I. $(GENERAL:%=-I%) -D_REENTRANT -DPIC -D_TS_ERRNO 51 52CFLAGS += $(XREGSFLAG) $(C_BIGPICFLAGS) 53 54LINTFLAGS += -um 55LINTLIBS = $(LDLIBS.cmd) 56 57POFILES = $(OBJECTS:%.o=%.po) 58 59all:= TARGET = all 60clean:= TARGET = clean 61clobber:= TARGET = clobber 62install:= TARGET = install 63lint:= TARGET = lint 64check:= TARGET = check 65 66.KEEP_STATE: 67 68all: $(OBJECTS) ${SUBDIRS} 69 70catalog: $(POFILES) ${SUBDIRS} 71 72check: ${SUBDIRS} 73 $(CSTYLE) -p -P $(OBJECTS:%.o=%.c) *.h 74 $(HDRCHK) *.h 75 76clean: ${SUBDIRS} 77 $(RM) $(OBJECTS) $(LINT_OBJS) *.po 78 79install: all 80 81lint: $(LINT_OBJS) ${SUBDIRS} 82 $(LINT.c) $(LINTFLAGS) $(LINT_OBJS) $(LINTLIBS) 83 84FRC: 85 86${SUBDIRS}: FRC 87 cd $@; pwd; $(MAKE) $(TARGET) 88 89.WAIT: 90 91include $(SRC)/cmd/Makefile.targ 92