Makefile.com (f808c858fa61e7769218966759510a8b1190dfcf) | Makefile.com (7c1d35456b77b833f089b886b99aa431a24e1377) |
---|---|
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 --- 5 unchanged lines hidden (view full) --- 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# | 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 --- 5 unchanged lines hidden (view full) --- 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# |
22# Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
|
22# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# | 23# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# |
25# ident "%Z%%M% %I% %E% SMI" 26# | |
27 28LIBRARY= libcurses.a 29VERS= .1 30 31OBJECTS= $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) 32 33OBJS1= _addch.o _addchnstr.o _addchstr.o _addnstr.o _addstr.o \ 34 _attroff.o _attron.o _attrset.o _beep.o _bkgd.o \ --- 105 unchanged lines hidden (view full) --- 140 141# definitions for lint 142 143$(LINTLIB):= SRCS=../screen/llib-lcurses 144 145LINTOUT= lint.out 146LINTSRC= $(LINTLIB:%.ln=%) 147 | 26 27LIBRARY= libcurses.a 28VERS= .1 29 30OBJECTS= $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) 31 32OBJS1= _addch.o _addchnstr.o _addchstr.o _addnstr.o _addstr.o \ 33 _attroff.o _attron.o _attrset.o _beep.o _bkgd.o \ --- 105 unchanged lines hidden (view full) --- 139 140# definitions for lint 141 142$(LINTLIB):= SRCS=../screen/llib-lcurses 143 144LINTOUT= lint.out 145LINTSRC= $(LINTLIB:%.ln=%) 146 |
148ROOTLINTDIR= $(ROOTLIBDIR) 149ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) 150ROOTLINTDIR64= $(ROOTLIBDIR64) 151ROOTLINT64= $(LINTSRC:%=$(ROOTLINTDIR64)/%) 152ROOTLINKS64= $(ROOTLIBDIR64)/$(LIBLINKS) 153 | |
154CLEANFILES += $(LINTOUT) $(LINTLIB) 155 156CFLAGS += $(CCVERBOSE) 157 158LDLIBS += -lc 159 160CPPFLAGS += -I../screen -I../../common/inc 161 162ED = ed 163RM = rm -f 164 165# 166# If and when somebody gets around to messaging this, CLOBBERFILE should not 167# be cleared (so that any .po file will be clobbered. 168# 169CLOBBERFILES= libcurses.so libcurses.so$(VERS) 170 | 147CLEANFILES += $(LINTOUT) $(LINTLIB) 148 149CFLAGS += $(CCVERBOSE) 150 151LDLIBS += -lc 152 153CPPFLAGS += -I../screen -I../../common/inc 154 155ED = ed 156RM = rm -f 157 158# 159# If and when somebody gets around to messaging this, CLOBBERFILE should not 160# be cleared (so that any .po file will be clobbered. 161# 162CLOBBERFILES= libcurses.so libcurses.so$(VERS) 163 |
171.KEEP_STATE: 172 | |
173all: $(LIBS) 174 175lint: lintcheck 176 | 164all: $(LIBS) 165 166lint: lintcheck 167 |
177# install rule for 32-bit libcurses.a 178$(ROOTLIBDIR)/%.a: %.a 179 $(INS.file) 180 cd $(ROOTLIBDIR); \ 181 $(RM) libtermlib.a libtermcap.a; \ 182 ln libcurses.a libtermlib.a; \ 183 ln libcurses.a libtermcap.a; | 168# 169# Install rules for libtermlib.so links. 170# Augments the rule in Makefile.targ 171# 172$(ROOTLIBDIR)/$(LIBLINKS) := INS.liblink= \ 173 $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ 174 cd $(ROOTLIBDIR); \ 175 $(RM) libtermlib.so libtermlib.so$(VERS); \ 176 $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ 177 $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; |
184 | 178 |
185# install rules for 32-bit libcurses.so in /usr/lib 186$(ROOTLINKS) := INS.liblink= \ | 179$(ROOTLIBDIR64)/$(LIBLINKS) := INS.liblink64= \ |
187 $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ | 180 $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ |
188 cd $(ROOTLIBDIR); \ 189 $(RM) libtermlib.so$(VERS) libtermcap.so$(VERS); \ 190 $(RM) libtermlib.so libtermcap.so; \ | 181 cd $(ROOTLIBDIR64); \ 182 $(RM) libtermlib.so libtermlib.so$(VERS);\ |
191 $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ | 183 $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ |
192 $(SYMLINK) libcurses.so$(VERS) libtermcap.so$(VERS); \ 193 $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; \ 194 $(SYMLINK) libtermcap.so$(VERS) libtermcap.so; | 184 $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; |
195 | 185 |
196# install rule for lint library target 197$(ROOTLINTDIR)/%: ../screen/% 198 $(INS.file) 199 cd $(ROOTLINTDIR); \ 200 $(RM) llib-ltermcap llib-ltermlib ; \ 201 $(SYMLINK) ./llib-lcurses llib-ltermcap; \ 202 $(SYMLINK) ./llib-lcurses llib-ltermlib; \ 203 $(RM) llib-ltermcap.ln llib-ltermlib.ln ; \ 204 $(SYMLINK) ./llib-lcurses.ln llib-ltermcap.ln; \ | 186# 187# Install rules for libtermlib.ln links. 188# Augments a pattern rule in Makefile.targ 189# 190$(ROOTLIBDIR)/$(LINTLIB) := INS.file= \ 191 -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \ 192 cd $(ROOTLIBDIR); \ 193 $(RM) llib-ltermlib.ln ; \ |
205 $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; 206 | 194 $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; 195 |
207# install rule for 64 bit lint library target 208$(ROOTLINTDIR64)/%: ../screen/% 209 $(INS.file) 210 cd $(ROOTLINTDIR64); \ 211 $(RM) llib-ltermcap llib-ltermlib ; \ 212 $(SYMLINK) ./llib-lcurses llib-ltermcap; \ 213 $(SYMLINK) ./llib-lcurses llib-ltermlib; \ 214 $(RM) llib-ltermcap.ln llib-ltermlib.ln ; \ 215 $(SYMLINK) ./llib-lcurses.ln llib-ltermcap.ln; \ | 196$(ROOTLIBDIR64)/$(LINTLIB) := INS.file= \ 197 -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \ 198 cd $(ROOTLIBDIR64); \ 199 $(RM) llib-ltermlib.ln ; \ |
216 $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; 217 218# | 200 $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; 201 202# |
203# Install rule for the lint source, which is installed only in 204# the default library dir, not MACH64 etc. 205# 206$(ROOTLINTDIR)/%: ../screen/% 207 $(INS.file) 208 cd $(ROOTLINTDIR); \ 209 $(RM) llib-ltermlib ; \ 210 $(SYMLINK) ./llib-lcurses llib-ltermlib; 211 212# |
|
219# Include library targets 220# 221include ../../Makefile.targ | 213# Include library targets 214# 215include ../../Makefile.targ |