17c478bdstevel@tonic-gate# 27c478bdstevel@tonic-gate# CDDL HEADER START 37c478bdstevel@tonic-gate# 47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the 50e42deeartem# Common Development and Distribution License (the "License"). 60e42deeartem# You may not use this file except in compliance with the License. 77c478bdstevel@tonic-gate# 87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bdstevel@tonic-gate# See the License for the specific language governing permissions 117c478bdstevel@tonic-gate# and limitations under the License. 127c478bdstevel@tonic-gate# 137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bdstevel@tonic-gate# 197c478bdstevel@tonic-gate# CDDL HEADER END 207c478bdstevel@tonic-gate# 217c478bdstevel@tonic-gate# 220e42deeartem# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230e42deeartem# Use is subject to license terms. 247c478bdstevel@tonic-gate# 257c478bdstevel@tonic-gate 260e42deeartemFSTYP_VERS=1 277c478bdstevel@tonic-gateFSTYPE= hsfs 280e42deeartemLIBPROG= fstyp.so.${FSTYP_VERS} 290e42deeartem 300e42deearteminclude ../../../../lib/Makefile.lib 310e42deearteminclude ../../Makefile.fstype 320e42deeartem 33f808c85raf# There should be a mapfile here 34f808c85rafMAPFILES = 35f808c85raf 360e42deeartemCFLAGS += $(C_PICFLAGS) 370e42deeartemDYNLIB= $(LIBPROG) 380e42deeartem 390e42deeartemLDLIBS += -lnvpair -lc 400e42deeartem 410e42deeartemLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2 420e42deeartemLINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2 437c478bdstevel@tonic-gate 447c478bdstevel@tonic-gate# 450e42deeartem# Override PMAP dependency 467c478bdstevel@tonic-gate# 470e42deeartemPMAP= 487c478bdstevel@tonic-gate 497c478bdstevel@tonic-gate# 500e42deeartem# Rules for making shared objects out of .c files. Works well if 510e42deeartem# we have a one-to-one mapping. Applies in all cases so far. 527c478bdstevel@tonic-gate# 530e42deeartem.SUFFIXES: .so.${FSTYP_VERS} ${SUFFIXES} 540e42deeartem 550e42deeartem.c.so.${FSTYP_VERS}: 560e42deeartem $(CC) $(CPPFLAGS) $(CFLAGS) $(DYNFLAGS) $(GSHARED) -o $@ $< $(LDLIBS) 570e42deeartem $(POST_PROCESS_SO) 580e42deeartem 590e42deeartemSRCS= ${LIBPROG:%.so.$(FSTYP_VERS)=%.c} 600e42deeartem 610e42deeartemCPPFLAGS += -DFSTYP_VERS=${FSTYP_VERS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 620e42deeartem 637014882Richard LoweCERRWARN += -_gcc=-Wno-switch 647014882Richard Lowe 650e42deeartem.KEEP_STATE: 660e42deeartem 670e42deeartemall: $(LIBPROG) 680e42deeartem 690e42deearteminstall: all 700e42deeartem $(RM) $(ROOTLIBFSTYPE)/fstyp 710e42deeartem $(LN) $(ROOTUSRSBIN)/fstyp $(ROOTLIBFSTYPE)/fstyp 720e42deeartem 730e42deeartemlint: lint_SRCS 747c478bdstevel@tonic-gate 750e42deeartemcstyle: 760e42deeartem $(CSTYLE) $(SRCS) 777c478bdstevel@tonic-gate 780e42deeartemclean: 790e42deeartem $(RM) $(LIBPROG) 807c478bdstevel@tonic-gate 810e42deeartemclobber: clean 82