xref: /illumos-gate/usr/src/cmd/devfsadm/Makefile (revision 2dc323c78a19e11644ede0abb76adb8c2b8c7c5c)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
58d483882Smlf# Common Development and Distribution License (the "License").
68d483882Smlf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
2124fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22a7872406Smeem# Use is subject to license terms.
23*2dc323c7SPatrick Mooney# Copyright 2016 Joyent, Inc.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# cmd/devfsadm/Makefile
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
28a7872406SmeemDEFAULTFILES = devfsadm.dfl
29a7872406Smeem
308d483882SmlfETCDEVFILES=reserved_devnames
318d483882Smlf
32a7872406Smeeminclude ../Makefile.cmd
33a7872406Smeem
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gate# One for each ISA.
367c478bd9Sstevel@tonic-gate#
377c478bd9Sstevel@tonic-gateSUBDIRS =	$(MACH)
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateall	:=	TARGET= all
407c478bd9Sstevel@tonic-gateinstall	:=	TARGET= install
417c478bd9Sstevel@tonic-gateclean	:=	TARGET= clean
427c478bd9Sstevel@tonic-gateclobber	:=	TARGET= clobber
437c478bd9Sstevel@tonic-gate_msg	:=	TARGET= _msg
447c478bd9Sstevel@tonic-gatelint	:=	TARGET= lint
457c478bd9Sstevel@tonic-gate
468d483882SmlfROOTETCDEV=	$(ROOTETC)/dev
478d483882SmlfROOTETCDEVFILES=$(ETCDEVFILES:%=$(ROOTETCDEV)/%)
488d483882Smlf$(ROOTETCDEV) :=	DIRMODE=	755
498d483882Smlf$(ROOTETCDEVFILES) :=	FILEMODE = 0644
508d483882Smlf
5101d41e6dSGordon RossUSRINCLUDEFILES=devfsadm.h
5201d41e6dSGordon RossROOTUSRINCLUDE= $(ROOT)/usr/include
5301d41e6dSGordon RossROOTUSRINCLUDEFILES=$(USRINCLUDEFILES:%=$(ROOTUSRINCLUDE)/%)
5401d41e6dSGordon Ross$(ROOTUSRINCLUDEFILES) :=	FILEMODE = 0644
5501d41e6dSGordon Ross
567c478bd9Sstevel@tonic-gate.KEEP_STATE:
577c478bd9Sstevel@tonic-gate
588d483882Smlfall:	$(SUBDIRS) $(ETCDEVFILES)
59a7872406Smeem
608d483882Smlfclean lint _msg:	$(SUBDIRS)
618d483882Smlf
628d483882Smlfclobber: $(SUBDIRS)
638d483882Smlf	$(RM) $(ROOTETCDEVFILES)
648d483882Smlf
65*2dc323c7SPatrick Mooneyinstall_h: $(ROOTUSRINCLUDEFILES)
66*2dc323c7SPatrick Mooney
67*2dc323c7SPatrick Mooneyinstall: $(SUBDIRS) install_h $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES)
68*2dc323c7SPatrick Mooney
698d483882Smlf
708d483882Smlf$(ROOTETCDEV):
718d483882Smlf	$(INS.dir)
728d483882Smlf
738d483882Smlf$(ROOTETCDEV)/% : % $(ROOTETCDEV)
748d483882Smlf	$(INS.file)
757c478bd9Sstevel@tonic-gate
7601d41e6dSGordon Ross$(ROOTUSRINCLUDE)/% : %
7701d41e6dSGordon Ross	$(INS.file)
7801d41e6dSGordon Ross
797c478bd9Sstevel@tonic-gate$(SUBDIRS):	FRC
807c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gateFRC:
83