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 # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 22 # Use is subject to license terms. 23 # 24 # @(#)Variant.mk 1.12 06/12/12 25 # 26 27 TOP = ../../../.. 28 29 %.o: $(SRC)/%.c 30 $(COMPILE.c) $(OUTPUT_OPTION) $< 31 32 include $(TOP)/rules/master.mk 33 34 PKG_TOP = $(TOP)/Make 35 36 CSRCS = \ 37 ld_file.c \ 38 lock.c 39 40 LIBNAME = libmakestate.a 41 DLIBNAME = libmakestate.so.1 42 MSG_FILE = libmakestate.msg 43 I18N_DIRS = $(SRC) 44 45 CFLAGS += $(V9FLAGS) -KPIC -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\" 46 CPPFLAGS= 47 48 #include $(TOP)/Make/lib/Lib.mk 49 include $(TOP)/rules/lib.mk 50 51 POUND_SIGN:sh= echo \# 52 RELEASE= 5.11 53 VERSION= $(RELEASE_VER) 54 PATCHID= $(VERSION) 55 DATE:sh = date '+%B %Y' 56 RELEASE_DATE= $(DATE) 57 PATCH_DATE= $(RELEASE_DATE) 58 RELEASE_CM= "@($(POUND_SIGN))RELEASE VERSION SunOS $(RELEASE) $(PATCHID) $(PATCH_DATE)" 59 60 PROCESS_COMMENT= mcs -a $(RELEASE_CM) 61 POST_PROCESS_SO= $(PROCESS_COMMENT) $@ 62 63 $(DLIBNAME) : $(LIBNAME) 64 $(CC) $(V9FLAGS) -o $@ -dy -G -ztext -h $@ ld_file.o lock.o -lelf 65 mcs -d $@ 66 ${POST_PROCESS_SO} 67 68 all: $(DLIBNAME) 69 70 install: all 71 ${INSTALL} -d ${DESTDIR}/usr/lib$(VAR_DIR) 72 ${RM} ${DESTDIR}/usr/lib$(VAR_DIR)/$(DLIBNAME) 73 ${INSTALL} $(DLIBNAME) ${DESTDIR}/usr/lib$(VAR_DIR)