Print this page
lib: move compat links from targetdirs to proper makefiles
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libeti/menu/Makefile.com
+++ new/usr/src/lib/libeti/menu/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 LIBRARY= libmenu.a
27 27 VERS= .1
28 28
29 29 OBJECTS= \
30 30 affect.o \
31 31 chk.o \
32 32 connect.o \
33 33 curitem.o \
34 34 driver.o \
35 35 global.o \
36 36 itemcount.o \
37 37 itemopts.o \
38 38 itemusrptr.o \
39 39 itemvalue.o \
40 40 link.o \
41 41 menuback.o \
42 42 menucursor.o \
43 43 menufore.o \
44 44 menuformat.o \
45 45 menugrey.o \
46 46 menuitems.o \
47 47 menumark.o \
48 48 menuopts.o \
49 49 menupad.o \
50 50 menuserptr.o \
51 51 menusub.o \
52 52 menuwin.o \
53 53 newitem.o \
54 54 newmenu.o \
55 55 pattern.o \
56 56 post.o \
57 57 scale.o \
58 58 show.o \
59 59 terminit.o \
60 60 topitem.o \
61 61 visible.o
62 62
63 63 # include library definitions
64 64 include ../../../Makefile.lib
65 65
66 66 LIBS = $(DYNLIB) $(LINTLIB)
67 67
↓ open down ↓ |
67 lines elided |
↑ open up ↑ |
68 68 SRCDIR= ../common
69 69
70 70 $(LINTLIB) := SRCS=$(SRCDIR)/$(LINTSRC)
71 71
72 72 CPPFLAGS += -I../inc
73 73 CFLAGS += $(CCVERBOSE)
74 74 LDLIBS += -lcurses -lc
75 75
76 76 CERRWARN += -_gcc=-Wno-parentheses
77 77
78 +COMPATLINKS= /usr/ccs/lib/libmenu.so \
79 + /usr/ccs/lib/$(MACH64)/libmenu.so
80 +
81 +$(ROOT)/usr/ccs/lib/libmenu.so := COMPATLINKTARGET= ../../lib/libmenu.so.1
82 +$(ROOT)/usr/ccs/lib/$(MACH64)/libmenu.so:= \
83 + COMPATLINKTARGET=../../../lib/$(MACH64)/libmenu.so.1
84 +
78 85 .KEEP_STATE:
79 86
80 87 all: $(LIBS)
81 88
82 89 lint: lintcheck
83 90
84 91 # include library targets
85 92 include ../../../Makefile.targ
86 93
87 94 pics/%.o: ../common/%.c
88 95 $(COMPILE.c) -o $@ $<
89 96 $(POST_PROCESS_O)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX