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 (the License). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/CDDL.txt 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/CDDL.txt. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets [] replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #pragma ident "@(#)Makefile 1.15 08/04/25 SMI" 27 # 28 # Makefile for system source 29 # 30 # include global definitions 31 include Makefile.master 32 # 33 # the Targetdirs file is the AT&T target.dirs file in a makefile format. 34 # it defines TARGETDIRS and ROOTDIRS. 35 include Targetdirs 36 37 SUBDIRS= lib cmd 38 39 HDRSUBDIRS= head lib 40 41 CHKHDRSUBDIRS= head lib cmd 42 43 MSGSUBDIRS= cmd lib 44 45 DOMAINS=$(TEXT_DOMAIN) 46 47 MSGDDIRS= $(DOMAINS:%=$(MSGROOT)/%) 48 MSGDIRS= $(MSGROOT) $(MSGDDIRS) 49 50 install := TARGET= install 51 all := TARGET= all 52 install_h := TARGET= install_h 53 clean := TARGET= clean 54 clobber := TARGET= clobber 55 check := TARGET= check 56 lint := TARGET= lint 57 _msg := TARGET= _msg 58 59 .KEEP_STATE: 60 61 62 install: $(ROOTDIRS) install_h .WAIT $(SUBDIRS) pkg_install .WAIT _msg 63 64 all: $(ROOTDIRS) install_h .WAIT $(SUBDIRS) pkg_all 65 66 clean clobber: $(SUBDIRS) head pkgdefs 67 68 install_h: $(ROOTDIRS) $(HDRSUBDIRS) 69 70 _msg: $(MSGDIRS) $(MSGSUBDIRS) 71 @cd pkgdefs/SUNW0scg; pwd; $(MAKE) _msg 72 73 pkg_all: 74 @cd pkgdefs; pwd; $(MAKE) all 75 76 pkg_install: 77 @cd pkgdefs; pwd; $(MAKE) install 78 79 $(SUBDIRS) head pkgdefs : FRC 80 @cd $@; pwd; $(MAKE) $(TARGET) 81 82 lint: $(SUBDIRS) 83 84 $(ROOTDIRS) $(MSGDIRS): 85 $(INS.dir) 86 87 check: $(CHKHDRSUBDIRS) 88 89 # scmsgs not used 90 scmsgs clean_scmsgs: 91 92 # cscope 93 $(CLOSED_BUILD)XRDIRS += ../closed 94 XRADD = *.java *.ksh *.pl *.sh 95 96 cscope.out tags: FRC 97 $(XREF) -f -x $@ 98 99 patch_build: 100 @cd pkgdefs; pwd; $(MAKE) patch_build 101 102 FRC: 103 104