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 #ident "%Z%%M% %I% %E% SMI" 24 # 25 # Copyright 1989-2003 Sun Microsystems, Inc. All rights reserved. 26 # Use is subject to license terms. 27 # 28 # ucbhead/Makefile 29 # 30 # include global definitions 31 include ../Makefile.master 32 33 LN= ln 34 35 HDRS= \ 36 a.out.h assert.h curses.h dbm.h \ 37 regexp.h resolv.h setjmp.h sgtty.h \ 38 signal.h stdio.h strings.h struct.h syscall.h \ 39 unistd.h vfont.h vfork.h 40 41 SYSHDRS= \ 42 dir.h fcntl.h file.h ioctl.h \ 43 param.h reboot.h resource.h rusage.h signal.h \ 44 sysmacros.h tty.h ttychars.h types.h vfs.h \ 45 wait.h 46 47 UFSHDRS= quota.h 48 49 ROOTHDRS= $(HDRS:%=$(ROOT)/usr/ucbinclude/%) \ 50 $(SYSHDRS:%=$(ROOT)/usr/ucbinclude/sys/%) \ 51 $(UFSHDRS:%=$(ROOT)/usr/ucbinclude/ufs/%) 52 53 DIRS= sys ufs 54 ROOTDIRS= $(ROOT)/usr/ucbinclude $(DIRS:%=$(ROOT)/usr/ucbinclude/%) 55 56 FCNTLH= $(ROOT)/usr/ucbinclude/fcntl.h 57 SYSFCNTLH= $(ROOT)/usr/ucbinclude/sys/fcntl.h 58 59 INS.FCNTLH= $(RM) $@; $(SYMLINK) sys/fcntl.h $@ 60 61 # install rules 62 $(ROOT)/usr/ucbinclude/sys/%: sys/% 63 $(INS.file) 64 65 $(ROOT)/usr/ucbinclude/ufs/%: ufs/% 66 $(INS.file) 67 68 $(ROOT)/usr/ucbinclude/%: % 69 $(INS.file) 70 71 .KEEP_STATE: 72 73 install_h: $(ROOTDIRS) $(ROOTHDRS) $(FCNTLH) 74 75 $(FCNTLH): $(SYSFCNTLH) 76 $(INS.FCNTLH) 77 78 $(ROOTDIRS): 79 $(INS.dir) 80 81