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# uts/sparc/config/Makefile 24# Copyright 1991-2003 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. 26# 27#ident "%Z%%M% %I% %E% SMI" 28# 29# This makefile drives the production of the kernel configuration files. 30# 31# sparc architecture dependent 32# 33 34# 35# Path to the base of the uts directory tree (usually /usr/src/uts). 36# 37UTSBASE = ../.. 38 39# 40# Include common rules. 41# 42include $(UTSBASE)/sparc/Makefile.sparc 43 44# 45# Define the module and object file sets. 46# 47SRCDIR = $(UTSBASE)/sparc/os 48PATH2INST = path_to_inst 49CONFIGFILES = name_to_major minor_perm driver_aliases name_to_sysnum \ 50 driver_classes dacf.conf $(PATH2INST) 51SECCONFIG = device_policy priv_names 52FILEMODE = 644 53OWNER = root 54GROUP = sys 55ROOTETC = $(ROOT)/etc 56ROOTETCSEC = $(ROOTETC)/security 57 58SRCFILES = $(CONFIGFILES:%=$(SRCDIR)/%) $(SECCONFIG:%=$(SRCDIR)/%) 59ROOTCONFIGFILES = $(CONFIGFILES:%=$(ROOTETC)/%) $(SECCONFIG:%=$(ROOTETCSEC)/%) 60 61# 62# Default build targets. 63# 64.KEEP_STATE: 65 66def all: $(SRCFILES) 67 68install: all $(ROOTCONFIGFILES) 69 70# 71# The ROOTETC directory is made by ../../../Targetdirs 72# through the rootdirs target in ../../../Makefile. 73# 74# etc/path_to_inst has permissions different from the other config files 75# 76$(ROOTETC)/$(PATH2INST):= FILEMODE=444 77$(ROOTETC)/$(PATH2INST):= GROUP=root 78 79$(ROOTETC)/%: $(SRCDIR)/% 80 $(INS.file) 81 82$(ROOTETCSEC)/%: $(SRCDIR)/% 83 $(INS.file) 84 85$(SRCDIR)/priv_names: $(PRIVS_DEF) $(PRIVS_AWK) 86 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pnamesfile=$@ 87 88clean clobber lint: 89 90# 91# No lints, so keep the clobber and clean targets reasonable. 92# 93CLEANLINTFILES = Nothing_to_remove 94CLEANFILES = Nothing_to_remove 95CLOBBERFILES = Nothing_to_remove 96 97# 98# Include common targets. 99# 100include $(UTSBASE)/sparc/Makefile.targ 101