17257d1b4Sraf# 27257d1b4Sraf# CDDL HEADER START 37257d1b4Sraf# 47257d1b4Sraf# The contents of this file are subject to the terms of the 57257d1b4Sraf# Common Development and Distribution License (the "License"). 67257d1b4Sraf# You may not use this file except in compliance with the License. 77257d1b4Sraf# 87257d1b4Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97257d1b4Sraf# or http://www.opensolaris.org/os/licensing. 107257d1b4Sraf# See the License for the specific language governing permissions 117257d1b4Sraf# and limitations under the License. 127257d1b4Sraf# 137257d1b4Sraf# When distributing Covered Code, include this CDDL HEADER in each 147257d1b4Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157257d1b4Sraf# If applicable, add the following below this CDDL HEADER, with the 167257d1b4Sraf# fields enclosed by brackets "[]" replaced with your own identifying 177257d1b4Sraf# information: Portions Copyright [yyyy] [name of copyright owner] 187257d1b4Sraf# 197257d1b4Sraf# CDDL HEADER END 207257d1b4Sraf# 217257d1b4Sraf# 22*cd3e9333SAli Bahrami# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 237257d1b4Sraf# 247257d1b4Sraf 257257d1b4SrafLIBRARY = c_synonyms.a 267257d1b4SrafVERS = .1 277257d1b4Sraf 287257d1b4SrafOBJECTS = synonyms.o 297257d1b4Sraf 307257d1b4Srafinclude ../../Makefile.lib 317257d1b4Srafinclude ../../Makefile.rootfs 327257d1b4Sraf 337257d1b4SrafLIBS = $(DYNLIB) 347257d1b4SrafLDLIBS += -lc 357257d1b4Sraf 367257d1b4SrafBUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS) 377257d1b4Sraf 387257d1b4SrafCLEANFILES += synonym_list mapfile-vers 397257d1b4Sraf 407257d1b4Sraf.KEEP_STATE: 417257d1b4Sraf 427257d1b4Srafall: $(LIBS) 437257d1b4Sraf 447257d1b4Srafpics/synonyms.o: pics .WAIT synonym_list 457257d1b4Sraf 467257d1b4Srafsynonym_list: ../syn_common ../syn2_common syn_isa 477257d1b4Sraf $(CAT) ../syn_common syn_isa | \ 487257d1b4Sraf $(SED) -e '/^#/d' -e '/^$$/d' -e 's/.*/ SYN(&)/' >synonym_list 497257d1b4Sraf $(CAT) ../syn2_common | \ 507257d1b4Sraf $(SED) -e '/^#/d' -e '/^$$/d' -e 's/.*/ SYN2(&)/' >>synonym_list 517257d1b4Sraf 527257d1b4Sraf$(DYNLIB): mapfile-vers $(PICS) 537257d1b4Sraf 547257d1b4Srafmapfile-vers: ../syn_common ../syn2_common syn_isa 55*cd3e9333SAli Bahrami echo "\$$mapfile_version 2\n\nSYMBOL_VERSION SUNWprivate_1.1 {\n" \ 56*cd3e9333SAli Bahrami >mapfile-vers 57*cd3e9333SAli Bahrami echo " global:" >>mapfile-vers 587257d1b4Sraf $(CAT) ../syn_common syn_isa | \ 597257d1b4Sraf $(SED) -e '/^#/d' -e '/^$$/d' -e 's/.*/ _&;/' >>mapfile-vers 607257d1b4Sraf $(CAT) ../syn2_common | \ 617257d1b4Sraf $(SED) -e '/^#/d' -e '/^$$/d' -e 's/.*/ __&;/' >>mapfile-vers 627257d1b4Sraf echo " local:\n *;\n};" >>mapfile-vers 637257d1b4Sraf 647257d1b4SrafBUILD.s= $(AS) $(ASFLAGS) $< -o $@ 657257d1b4Sraf 667257d1b4Sraf# include library targets 677257d1b4Srafinclude ../../Makefile.targ 687257d1b4Sraf 697257d1b4SrafMAPFILES = mapfile-vers 707257d1b4Sraf 717257d1b4Srafpics/%.o: %.s 727257d1b4Sraf $(BUILD.s) 73