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/OPENSOLARIS.LICENSE 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/OPENSOLARIS.LICENSE. 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 # ident "@(#)Makefile.master 1.1 08/10/20 SMI" 27 # 28 # The nfsv4 Top Level Test Suite Makefile.master 29 # 30 31 MY_SUITE= suites/nfs/nfsv4 32 WS_ROOT_SH= echo ${TESTROOT} | /usr/bin/sed s:/usr/src/${MY_SUITE}:: 33 WS_ROOT= ${WS_ROOT_SH:sh} 34 TARCH:sh= /usr/bin/uname -p 35 36 SRC_PATH= $(WS_ROOT)/usr/src/$(MY_SUITE) 37 EXE_PATH= $(WS_ROOT)/proto/root_$(TARCH)/${MY_SUITE} 38 PKG_PATH= $(WS_ROOT)/packages/$(TARCH) 39 PKGNAME= SUNWstc-nfs-nfsv4 40 41 # The $TESTROOT macro has been defined before this Makefile to be included 42 EXEDIR= $(EXE_PATH) 43 EXETDIR= $(EXEDIR)/$(TDIR) 44 45 .SCCS_GET: 46 47 # definitions for top files in the $EXEDIR 48 TOPSHFILES= $(SHFILES:%=$(EXEDIR)/%) 49 TOPDATAFILES= $(DATAFILES:%=$(EXEDIR)/%) 50 TOPMAKEFILES= $(MAKEFILES:%=$(EXEDIR)/%) 51 52 # definitions for files in the $EXEDIR hierarchy 53 TEXEPROGS= $(PROGS:%=$(EXETDIR)/%) 54 TEXESHFILES= $(SHFILES:%=$(EXETDIR)/%) 55 TEXEDATAFILES= $(DATAFILES:%=$(EXETDIR)/%) 56 TEXEMAKEFILES= $(MAKEFILES:%=$(EXETDIR)/%) 57 58 # commands to be used in build: 59 CP= cp 60 CD= cd 61 CAT= cat 62 RM= rm -rf 63 MAKE= make 64 MKDIR= mkdir 65 MV= mv 66 CHMOD= chmod 67 RPCGEN= rpcgen 68 INS= install 69 ECHO= /usr/5bin/echo 70 UMASK= /usr/bin/umask 71 72 FILEMODE= 0555 73 DIRMODE= 0777 74 UMASKMODE= 0000 75 76 CFLAGS += $(STC_CFLAGS) 77 LDFLAGS += 78 79 POUND_SIGN:sh= echo \\043 80 __SS12 = $(POUND_SIGN) 81 __GNUC = $(POUND_SIGN) 82 83 $(__GNUC)CC = /usr/sfw/bin/gcc 84 $(__SS12)CC = /ws/onnv-tools/SUNWspro/SS12/bin/cc 85 86 # install macros 87 INS.file= $(RM) $@; $(UMASK) $(UMASKMODE); \ 88 $(INS) -m $(FILEMODE) -f $(@D) $< 89 INS.dir= $(UMASK) $(UMASKMODE); $(INS) -d -m $(DIRMODE) $@; \ 90 $(CHMOD) $(DIRMODE) $@ 91 92 $(EXETDIR) $(PKG_PATH): 93 $(INS.dir) 94 95 $(EXEDIR)/%: % 96 $(INS.file) 97 98 $(EXETDIR)/%: % 99 $(INS.file) 100 101 .SUFFIXES: .tcl .py .ksh 102 103 .tcl: 104 $(RM) $@ 105 $(CAT) $< > $@ 106 $(CHMOD) $(FILEMODE) $@ 107 108 .py: 109 $(RM) $@ 110 $(CAT) $< > $@ 111 $(CHMOD) $(FILEMODE) $@ 112 113 .ksh: 114 $(RM) $@ 115 $(CAT) $< > $@ 116 $(CHMOD) $(FILEMODE) $@ 117 118