diff options
Diffstat (limited to 'usr/src/lib/libcurses/Makefile.com')
-rw-r--r-- | usr/src/lib/libcurses/Makefile.com | 87 |
1 files changed, 32 insertions, 55 deletions
diff --git a/usr/src/lib/libcurses/Makefile.com b/usr/src/lib/libcurses/Makefile.com index 51dce6c5bc..2082f3b634 100644 --- a/usr/src/lib/libcurses/Makefile.com +++ b/usr/src/lib/libcurses/Makefile.com @@ -136,16 +136,7 @@ include ../../Makefile.rootfs SRCDIR = ../screen -LIBS = $(DYNLIB) $(LINTLIB) - -# definitions for lint - -$(LINTLIB):= SRCS=../screen/llib-lcurses - -LINTOUT= lint.out -LINTSRC= $(LINTLIB:%.ln=%) - -CLEANFILES += $(LINTOUT) $(LINTLIB) +LIBS = $(DYNLIB) CFLAGS += $(CCVERBOSE) @@ -171,51 +162,37 @@ CLOBBERFILES= libcurses.so libcurses.so$(VERS) all: $(LIBS) -lint: lintcheck - -# -# Install rules for libtermlib.so links. -# Augments the rule in Makefile.targ -# -$(ROOTLIBDIR)/$(LIBLINKS) := INS.liblink= \ - $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ - cd $(ROOTLIBDIR); \ - $(RM) libtermlib.so libtermlib.so$(VERS); \ - $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ - $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; - -$(ROOTLIBDIR64)/$(LIBLINKS) := INS.liblink64= \ - $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ - cd $(ROOTLIBDIR64); \ - $(RM) libtermlib.so libtermlib.so$(VERS);\ - $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ - $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; - -# -# Install rules for libtermlib.ln links. -# Augments a pattern rule in Makefile.targ -# -$(ROOTLIBDIR)/$(LINTLIB) := INS.file= \ - -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \ - cd $(ROOTLIBDIR); \ - $(RM) llib-ltermlib.ln ; \ - $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; - -$(ROOTLIBDIR64)/$(LINTLIB) := INS.file= \ - -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \ - cd $(ROOTLIBDIR64); \ - $(RM) llib-ltermlib.ln ; \ - $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; - -# -# Install rule for the lint source, which is installed only in -# the default library dir, not MACH64 etc. -# -$(ROOTLINTDIR)/%: ../screen/% - $(INS.file) - cd $(ROOTLINTDIR); \ - $(RM) llib-ltermlib ; \ - $(SYMLINK) ./llib-lcurses llib-ltermlib; +COMPATLINKS += usr/ccs/lib/libcurses.so \ + usr/ccs/lib/libtermlib.so \ + usr/lib/libtermlib.so \ + usr/lib/libtermlib.so.1 \ + lib/libtermlib.so \ + lib/libtermlib.so.1 + +COMPATLINKS64 += usr/ccs/lib/$(MACH64)/libcurses.so \ + usr/ccs/lib/$(MACH64)/libtermlib.so \ + usr/lib/$(MACH64)/libtermlib.so \ + usr/lib/$(MACH64)/libtermlib.so.1 \ + lib/$(MACH64)/libtermlib.so \ + lib/$(MACH64)/libtermlib.so.1 + +$(ROOT)/usr/ccs/lib/libcurses.so := COMPATLINKTARGET=../../../lib/libcurses.so.1 +$(ROOT)/usr/ccs/lib/libtermlib.so := \ + COMPATLINKTARGET=../../../lib/libcurses.so.1 +$(ROOT)/usr/ccs/lib/$(MACH64)/libcurses.so := \ + COMPATLINKTARGET=../../../../lib/$(MACH64)/libcurses.so.1 +$(ROOT)/usr/ccs/lib/$(MACH64)/libtermlib.so := \ + COMPATLINKTARGET=../../../../lib/$(MACH64)/libcurses.so.1 +$(ROOT)/usr/lib/libtermlib.so.1 := COMPATLINKTARGET= ../../lib/libcurses.so.1 +$(ROOT)/usr/lib/libtermlib.so := COMPATLINKTARGET= ../../lib/libcurses.so.1 +$(ROOT)/usr/lib/$(MACH64)/libtermlib.so.1 := \ + COMPATLINKTARGET= ../../../lib/$(MACH64)/libcurses.so.1 +$(ROOT)/usr/lib/$(MACH64)/libtermlib.so := \ + COMPATLINKTARGET= ../../../lib/$(MACH64)/libcurses.so.1 +$(ROOT)/lib/libtermlib.so.1 := COMPATLINKTARGET= libcurses.so.1 +$(ROOT)/lib/libtermlib.so := COMPATLINKTARGET= libtermlib.so.1 +$(ROOT)/lib/$(MACH64)/libtermlib.so.1 := COMPATLINKTARGET= libcurses.so.1 +$(ROOT)/lib/$(MACH64)/libtermlib.so := COMPATLINKTARGET= libtermlib.so.1 # # Include library targets |