summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/yacc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/yacc')
-rw-r--r--usr/src/cmd/sgs/yacc/Makefile.com7
-rw-r--r--usr/src/cmd/sgs/yacc/Makefile.targ3
-rw-r--r--usr/src/cmd/sgs/yacc/amd64/Makefile4
-rw-r--r--usr/src/cmd/sgs/yacc/i386/Makefile2
-rw-r--r--usr/src/cmd/sgs/yacc/sparc/Makefile2
-rw-r--r--usr/src/cmd/sgs/yacc/sparcv9/Makefile6
6 files changed, 14 insertions, 10 deletions
diff --git a/usr/src/cmd/sgs/yacc/Makefile.com b/usr/src/cmd/sgs/yacc/Makefile.com
index 2172234f49..9f9b3dc0e8 100644
--- a/usr/src/cmd/sgs/yacc/Makefile.com
+++ b/usr/src/cmd/sgs/yacc/Makefile.com
@@ -41,6 +41,13 @@ YACCPAR= yaccpar
include ../../../../lib/Makefile.lib
+COMPATLINKS= usr/ccs/lib/liby.so
+COMPATLINKS64= usr/ccs/lib/$(MACH64)/liby.so
+
+$(ROOT)/usr/ccs/lib/liby.so := COMPATLINKTARGET=../../lib/liby.so.1
+$(ROOT)/usr/ccs/lib/$(MACH64)/liby.so:= \
+ COMPATLINKTARGET=../../../lib/$(MACH64)/liby.so.1
+
SRCDIR = ../common
# Override default source file derivation rule (in Makefile.lib)
diff --git a/usr/src/cmd/sgs/yacc/Makefile.targ b/usr/src/cmd/sgs/yacc/Makefile.targ
index a7932225e0..1ff1f4e804 100644
--- a/usr/src/cmd/sgs/yacc/Makefile.targ
+++ b/usr/src/cmd/sgs/yacc/Makefile.targ
@@ -75,5 +75,8 @@ objs/%.o pics/%.o: ../common/%.c
$(DYNLINKLIBDIR)/%: %$(VERS)
$(INS.liblink)
+$(ROOTCOMPATLINKS) $(ROOTCOMPATLINKS64):
+ $(RM) $@; $(SYMLINK) $(COMPATLINKTARGET) $@
+
clean:
$(RM) $(POBJS) $(OBJS) $(PICS) $(CLEANFILES)
diff --git a/usr/src/cmd/sgs/yacc/amd64/Makefile b/usr/src/cmd/sgs/yacc/amd64/Makefile
index 3b987420ec..46c508df3d 100644
--- a/usr/src/cmd/sgs/yacc/amd64/Makefile
+++ b/usr/src/cmd/sgs/yacc/amd64/Makefile
@@ -23,8 +23,6 @@
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
# This Makefile is only to produce 64-bit yacc shared library liby.so.1
# and not for building 64-bit yacc itself.
@@ -39,7 +37,7 @@ POFILE=
all_lib: $(LIBS)
-install_lib: all_lib $(ROOTLIBS64) $(ROOTLINKS64)
+install_lib: all_lib $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTCOMPATLINKS64)
include ../Makefile.targ
include ../../../Makefile.targ
diff --git a/usr/src/cmd/sgs/yacc/i386/Makefile b/usr/src/cmd/sgs/yacc/i386/Makefile
index 5ca3d8bd7d..20885a7713 100644
--- a/usr/src/cmd/sgs/yacc/i386/Makefile
+++ b/usr/src/cmd/sgs/yacc/i386/Makefile
@@ -40,7 +40,7 @@ install: all $(ROOTPROG) $(ROOTYACCPAR) $(ROOTCCSBINLINK)
$(RM) $(ROOTCCSBIN)/yaccpar
$(SYMLINK) ../../share/lib/ccs/yaccpar $(ROOTCCSBIN)/yaccpar
-install_lib: all_lib $(ROOTLIBS) $(ROOTLINKS) $(DYNLINKLIB)
+install_lib: all_lib $(ROOTLIBS) $(ROOTLINKS) $(DYNLINKLIB) $(ROOTCOMPATLINKS)
include ../Makefile.targ
include ../../../Makefile.targ
diff --git a/usr/src/cmd/sgs/yacc/sparc/Makefile b/usr/src/cmd/sgs/yacc/sparc/Makefile
index 65d76b6f21..909fb6e7e2 100644
--- a/usr/src/cmd/sgs/yacc/sparc/Makefile
+++ b/usr/src/cmd/sgs/yacc/sparc/Makefile
@@ -38,7 +38,7 @@ all_lib: $(LIBS)
install: all $(ROOTPROG) $(ROOTYACCPAR) $(ROOTCCSBINLINK)
-install_lib: all_lib $(ROOTLIBS) $(ROOTLINKS) $(DYNLINKLIB)
+install_lib: all_lib $(ROOTLIBS) $(ROOTLINKS) $(DYNLINKLIB) $(ROOTCOMPATLINKS)
$(RM) $(ROOTCCSBIN)/yaccpar
$(SYMLINK) ../../share/lib/ccs/yaccpar $(ROOTCCSBIN)/yaccpar
diff --git a/usr/src/cmd/sgs/yacc/sparcv9/Makefile b/usr/src/cmd/sgs/yacc/sparcv9/Makefile
index 1c65ac76b5..f94db938f3 100644
--- a/usr/src/cmd/sgs/yacc/sparcv9/Makefile
+++ b/usr/src/cmd/sgs/yacc/sparcv9/Makefile
@@ -20,13 +20,9 @@
# CDDL HEADER END
#
#
-# ident "%Z%%M% %I% %E% SMI"
-#
# Copyright (c) 1997 by Sun Microsystems, Inc.
# All rights reserved.
#
-# cmd/sgs/yacc/sparcv9/Makefile
-#
# This Makefile is only to produce 64-bit yacc shared library liby.so.1
# and not for building 64-bit yacc itself.
@@ -41,7 +37,7 @@ POFILE=
all_lib: $(LIBS)
-install_lib: all_lib $(ROOTLIBS64) $(ROOTLINKS64)
+install_lib: all_lib $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTCOMPATLINKS64)
include ../Makefile.targ
include ../../../Makefile.targ