xref: /titanic_50/usr/src/lib/libcurses/Makefile.com (revision 7c1d35456b77b833f089b886b99aa431a24e1377)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22*7c1d3545SGordon Ross# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
23f808c858Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
26f808c858Sraf
277c478bd9Sstevel@tonic-gateLIBRARY=	libcurses.a
287c478bd9Sstevel@tonic-gateVERS=	.1
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateOBJECTS=	$(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6)
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateOBJS1=	_addch.o _addchnstr.o _addchstr.o _addnstr.o _addstr.o \
337c478bd9Sstevel@tonic-gate	_attroff.o _attron.o _attrset.o _beep.o _bkgd.o \
347c478bd9Sstevel@tonic-gate	_bkgdset.o _border.o _box.o _clear.o _clrtobot.o \
357c478bd9Sstevel@tonic-gate	_clrtoeol.o _crmode.o _del_curterm.o _delch.o _deleteln.o \
367c478bd9Sstevel@tonic-gate	_echo.o _echochar.o _erase.o _fixterm.o _flash.o \
377c478bd9Sstevel@tonic-gate	_garbagdlins.o _garbagedwin.o _getch.o _getstr.o \
387c478bd9Sstevel@tonic-gate	_halfdelay.o _hline.o _inch.o _inchnstr.o _inchstr.o \
397c478bd9Sstevel@tonic-gate	_innstr.o _insch.o _insdelln.o _insertln.o _insnstr.o \
407c478bd9Sstevel@tonic-gate	_insstr.o _instr.o _intrflush.o _meta.o _move.o \
417c478bd9Sstevel@tonic-gate	_mvaddch.o _mvaddchnstr.o _mvaddchstr.o _mvaddnstr.o \
427c478bd9Sstevel@tonic-gate	_mvaddstr.o _mvdelch.o _mvgetch.o _mvgetstr.o _mvhline.o \
437c478bd9Sstevel@tonic-gate	_mvinch.o _mvinchnstr.o _mvinchstr.o _mvinnstr.o \
447c478bd9Sstevel@tonic-gate	_mvinsch.o _mvinsnstr.o _mvinsstr.o _mvinstr.o _mvvline.o \
457c478bd9Sstevel@tonic-gate	_mvwaddch.o _mvwaddchnst.o _mvwaddchstr.o _mvwaddnstr.o \
467c478bd9Sstevel@tonic-gate	_mvwaddstr.o _mvwdelch.o _mvwgetch.o _mvwgetstr.o \
477c478bd9Sstevel@tonic-gate	_mvwhline.o _mvwinch.o _mvwinchnst.o _mvwinchstr.o \
487c478bd9Sstevel@tonic-gate	_mvwinnstr.o _mvwinsch.o _mvwinsnstr.o _mvwinsstr.o \
497c478bd9Sstevel@tonic-gate	_mvwinstr.o _mvwvline.o _newterm.o _nl.o _nocrmode.o \
507c478bd9Sstevel@tonic-gate	_noecho.o _nonl.o _noqiflush.o _overlay.o _overwrite.o \
517c478bd9Sstevel@tonic-gate	_qiflush.o _refresh.o _resetterm.o _saveterm.o \
527c478bd9Sstevel@tonic-gate	_scr_init.o _scr_restore.o _scr_set.o _scrl.o _scroll.o \
537c478bd9Sstevel@tonic-gate	_set_curterm.o _set_term.o _setscrreg.o _slk_init.o \
547c478bd9Sstevel@tonic-gate	_standend.o _standout.o _subpad.o _timeout.o _touchline.o \
557c478bd9Sstevel@tonic-gate	_unctrl.o _vline.o _waddchstr.o _waddstr.o _wclear.o \
567c478bd9Sstevel@tonic-gate	_wdeleteln.o _werase.o _winsertln.o _winsstr.o \
577c478bd9Sstevel@tonic-gate	_wstandend.o _wstandout.o V2.__sscans.o V2._sprintw.o \
587c478bd9Sstevel@tonic-gate	V2.makenew.o V3.box.o V3.initscr.o V3.m_addch.o V3.m_addstr.o \
597c478bd9Sstevel@tonic-gate	V3.m_clear.o V3.m_erase.o V3.m_initscr.o V3.m_move.o V3.m_newterm.o \
607c478bd9Sstevel@tonic-gate	V3.m_refresh.o V3.newterm.o V3.pechochar.o V3.upd_old_y.o \
617c478bd9Sstevel@tonic-gate	V3.vidattr.o V3.vidputs.o V3.waddch.o V3.wattroff.o V3.wattron.o \
627c478bd9Sstevel@tonic-gate	V3.wattrset.o V3.wechochar.o V3.winsch.o baudrate.o can_change.o \
637c478bd9Sstevel@tonic-gate	color_cont.o cbreak.o chkinput.o clearok.o copywin.o curs_set.o \
647c478bd9Sstevel@tonic-gate	curserr.o curses.o def_prog.o delay.o delay_out.o \
657c478bd9Sstevel@tonic-gate	delkey.o delkeymap.o delscreen.o delterm.o delwin.o \
667c478bd9Sstevel@tonic-gate	derwin.o doupdate.o draino.o dupwin.o endwin.o erasechar.o \
677c478bd9Sstevel@tonic-gate	flushinp.o getattrs.o getbegyx.o getbkgd.o getmaxyx.o \
687c478bd9Sstevel@tonic-gate	getparyx.o getsyx.o gettmode.o getwin.o getyx.o has_colors.o \
697c478bd9Sstevel@tonic-gate	has_ic.o has_il.o idcok.o idlok.o immedok.o init_acs.o init_color.o \
707c478bd9Sstevel@tonic-gate	init_costs.o init_pair.o initscr.o is_linetou.o is_wintou.o \
717c478bd9Sstevel@tonic-gate	keyname.o keypad.o killchar.o leaveok.o
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateOBJS2=	longname.o makenew.o memSset.o meta.o mvcur.o \
747c478bd9Sstevel@tonic-gate	mvderwin.o mvprintw.o mvscanw.o mvwin.o mvwprintw.o \
757c478bd9Sstevel@tonic-gate	mvwscanw.o napms.o newkey.o newpad.o newscreen.o \
767c478bd9Sstevel@tonic-gate	newwin.o nocbreak.o nodelay.o noraw.o \
777c478bd9Sstevel@tonic-gate	notimeout.o outch.o overlap.o pechochar.o pnoutref.o \
787c478bd9Sstevel@tonic-gate	prefresh.o printw.o putp.o putwin.o quick_echo.o \
797c478bd9Sstevel@tonic-gate	raw.o redrawwin.o reset_sh.o resetty.o restart.o \
807c478bd9Sstevel@tonic-gate	ring.o ripoffline.o savetty.o scanw.o scr_all.o \
817c478bd9Sstevel@tonic-gate	scr_dump.o scr_ll_dump.o scr_reset.o scrollok.o setcurscreen.o \
827c478bd9Sstevel@tonic-gate	setcurterm.o setecho.o setkeymap.o setnonl.o setqiflush.o \
837c478bd9Sstevel@tonic-gate	setsyx.o setterm.o setupterm.o slk_atroff.o slk_atron.o \
847c478bd9Sstevel@tonic-gate	slk_atrset.o slk_clear.o slk_label.o \
857c478bd9Sstevel@tonic-gate	slk_noutref.o slk_refresh.o slk_restore.o slk_set.o slk_start.o \
867c478bd9Sstevel@tonic-gate	slk_touch.o subwin.o syncok.o tcsearch.o termattrs.o \
877c478bd9Sstevel@tonic-gate	termcap.o termerr.o termname.o tgetch.o tgoto.o \
887c478bd9Sstevel@tonic-gate	tifget.o tifnames.o tiget.o tinames.o tinputfd.o \
897c478bd9Sstevel@tonic-gate	tnames.o touchwin.o tparm.o tputs.o trace.o \
907c478bd9Sstevel@tonic-gate	tstp.o ttimeout.o typeahead.o unctrl.o ungetch.o \
917c478bd9Sstevel@tonic-gate	untouchwin.o vidputs.o vidupdate.o vwprintw.o \
927c478bd9Sstevel@tonic-gate	vwscanw.o waddch.o waddchnstr.o waddnstr.o wattroff.o \
937c478bd9Sstevel@tonic-gate	wattron.o wattrset.o wbkgd.o wbkgdset.o wborder.o \
947c478bd9Sstevel@tonic-gate	wclrtobot.o wclrtoeol.o wdelch.o wechochar.o wgetch.o \
957c478bd9Sstevel@tonic-gate	wgetstr.o whline.o winch.o winchnstr.o winchstr.o \
967c478bd9Sstevel@tonic-gate	winnstr.o winsch.o winsdelln.o winsnstr.o winstr.o \
977c478bd9Sstevel@tonic-gate	wmove.o wnoutref.o wprintw.o wredrawln.o wrefresh.o \
987c478bd9Sstevel@tonic-gate	wscanw.o wscrl.o wsetscrreg.o wsyncdown.o wsyncup.o \
997c478bd9Sstevel@tonic-gate	wtimeout.o wtouchln.o wvline.o pair_cont.o start_col.o \
1007c478bd9Sstevel@tonic-gate	mouse.o
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gateOBJS3=	mbaddch.o mbcharlen.o mbdisplen.o mbgetwidth.o \
1037c478bd9Sstevel@tonic-gate	mbinch.o mbinsshift.o mbmove.o mbtranslate.o \
1047c478bd9Sstevel@tonic-gate	pechowchar.o tgetwch.o ungetwch.o waddnwstr.o \
1057c478bd9Sstevel@tonic-gate	waddwch.o waddwchnstr.o wechowchar.o wgetwstr.o \
1067c478bd9Sstevel@tonic-gate	wgetwch.o winnwstr.o winsnwstr.o winswch.o \
1077c478bd9Sstevel@tonic-gate	winwch.o winwchnstr.o winwstr.o \
1087c478bd9Sstevel@tonic-gate	use_env.o
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gateOBJS4=	_addnwstr.o _addwch.o _addwchnstr.o _addwchstr.o \
1117c478bd9Sstevel@tonic-gate	_addwstr.o _echowchar.o _getnwstr.o _getwch.o \
1127c478bd9Sstevel@tonic-gate	_getwstr.o _innwstr.o _insnwstr.o _inswch.o \
1137c478bd9Sstevel@tonic-gate	_inswstr.o _inwch.o _inwchnstr.o _inwchstr.o \
1147c478bd9Sstevel@tonic-gate	_inwstr.o _mvaddnwstr.o _mvaddwch.o _mvaddwchnstr.o \
1157c478bd9Sstevel@tonic-gate	_mvaddwchstr.o _mvaddwstr.o _mvgetnwstr.o _mvgetwch.o \
1167c478bd9Sstevel@tonic-gate	_mvgetwstr.o _mvinnwstr.o _mvinsnwstr.o _mvinswch.o \
1177c478bd9Sstevel@tonic-gate	_mvinswstr.o _mvinwch.o _mvinwchnstr.o _mvinwchstr.o \
1187c478bd9Sstevel@tonic-gate	_mvinwstr.o _mvwaddnwstr.o _mvwaddwch.o _mvwaddwchnstr.o \
1197c478bd9Sstevel@tonic-gate	_mvwaddwchstr.o _mvwaddwstr.o _mvwgetnwstr.o _mvwgetwch.o \
1207c478bd9Sstevel@tonic-gate	_mvwgetwstr.o _mvwinnwstr.o _mvwinsnwstr.o _mvwinswch.o \
1217c478bd9Sstevel@tonic-gate	_mvwinswstr.o _mvwinwch.o _mvwinwchnstr.o _mvwinwchstr.o \
1227c478bd9Sstevel@tonic-gate	_mvwinwstr.o _waddwchstr.o _waddwstr.o _winswstr.o \
1237c478bd9Sstevel@tonic-gate	_winwchstr.o
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gateOBJS5=	mbstowcs.o mbtowc.o wcstombs.o wctomb.o
1267c478bd9Sstevel@tonic-gate
1277c478bd9Sstevel@tonic-gateOBJS6=	wmovenextch.o wmoveprevch.o wadjcurspos.o print.o iexpand.o \
1287c478bd9Sstevel@tonic-gate	cexpand.o infotocap.o
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gate# include library definitions
1317c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gate# install this library in the root filesystem
1347c478bd9Sstevel@tonic-gateinclude ../../Makefile.rootfs
1357c478bd9Sstevel@tonic-gate
136f808c858SrafSRCDIR =	../screen
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gateLIBS =		$(DYNLIB) $(LINTLIB)
1397c478bd9Sstevel@tonic-gate
1407c478bd9Sstevel@tonic-gate# definitions for lint
1417c478bd9Sstevel@tonic-gate
1427c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../screen/llib-lcurses
1437c478bd9Sstevel@tonic-gate
1447c478bd9Sstevel@tonic-gateLINTOUT=	lint.out
1457c478bd9Sstevel@tonic-gateLINTSRC=	$(LINTLIB:%.ln=%)
1467c478bd9Sstevel@tonic-gate
1477c478bd9Sstevel@tonic-gateCLEANFILES +=	$(LINTOUT) $(LINTLIB)
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gateCFLAGS	+=	$(CCVERBOSE)
150f808c858Sraf
1517c478bd9Sstevel@tonic-gateLDLIBS += -lc
1527c478bd9Sstevel@tonic-gate
1537c478bd9Sstevel@tonic-gateCPPFLAGS += -I../screen -I../../common/inc
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gateED = ed
1567c478bd9Sstevel@tonic-gateRM = rm -f
1577c478bd9Sstevel@tonic-gate
1587c478bd9Sstevel@tonic-gate#
1597c478bd9Sstevel@tonic-gate# If and when somebody gets around to messaging this, CLOBBERFILE should not
1607c478bd9Sstevel@tonic-gate# be cleared (so that any .po file will be clobbered.
1617c478bd9Sstevel@tonic-gate#
1627c478bd9Sstevel@tonic-gateCLOBBERFILES=	libcurses.so libcurses.so$(VERS)
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gateall: $(LIBS)
1657c478bd9Sstevel@tonic-gate
1667c478bd9Sstevel@tonic-gatelint: lintcheck
1677c478bd9Sstevel@tonic-gate
168*7c1d3545SGordon Ross#
169*7c1d3545SGordon Ross# Install rules for libtermlib.so links.
170*7c1d3545SGordon Ross# Augments the rule in Makefile.targ
171*7c1d3545SGordon Ross#
172*7c1d3545SGordon Ross$(ROOTLIBDIR)/$(LIBLINKS) := INS.liblink= \
1737c478bd9Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
1747c478bd9Sstevel@tonic-gate	cd $(ROOTLIBDIR); \
175*7c1d3545SGordon Ross		$(RM) libtermlib.so libtermlib.so$(VERS); \
1767c478bd9Sstevel@tonic-gate		$(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \
177*7c1d3545SGordon Ross		$(SYMLINK) libtermlib.so$(VERS) libtermlib.so;
1787c478bd9Sstevel@tonic-gate
179*7c1d3545SGordon Ross$(ROOTLIBDIR64)/$(LIBLINKS) := INS.liblink64= \
180*7c1d3545SGordon Ross	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
181*7c1d3545SGordon Ross	cd $(ROOTLIBDIR64); \
182*7c1d3545SGordon Ross		$(RM) libtermlib.so libtermlib.so$(VERS);\
183*7c1d3545SGordon Ross		$(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \
184*7c1d3545SGordon Ross		$(SYMLINK) libtermlib.so$(VERS) libtermlib.so;
185*7c1d3545SGordon Ross
186*7c1d3545SGordon Ross#
187*7c1d3545SGordon Ross# Install rules for libtermlib.ln links.
188*7c1d3545SGordon Ross# Augments a pattern rule in Makefile.targ
189*7c1d3545SGordon Ross#
190*7c1d3545SGordon Ross$(ROOTLIBDIR)/$(LINTLIB) := INS.file= \
191*7c1d3545SGordon Ross	-$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \
192*7c1d3545SGordon Ross	cd $(ROOTLIBDIR); \
193*7c1d3545SGordon Ross		$(RM) llib-ltermlib.ln ; \
194*7c1d3545SGordon Ross		$(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln;
195*7c1d3545SGordon Ross
196*7c1d3545SGordon Ross$(ROOTLIBDIR64)/$(LINTLIB) := INS.file= \
197*7c1d3545SGordon Ross	-$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \
198*7c1d3545SGordon Ross	cd $(ROOTLIBDIR64); \
199*7c1d3545SGordon Ross		$(RM) llib-ltermlib.ln ; \
200*7c1d3545SGordon Ross		$(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln;
201*7c1d3545SGordon Ross
202*7c1d3545SGordon Ross#
203*7c1d3545SGordon Ross# Install rule for the lint source, which is installed only in
204*7c1d3545SGordon Ross# the default library dir, not MACH64 etc.
205*7c1d3545SGordon Ross#
2067c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../screen/%
2077c478bd9Sstevel@tonic-gate	$(INS.file)
2087c478bd9Sstevel@tonic-gate	cd $(ROOTLINTDIR); \
209*7c1d3545SGordon Ross		$(RM) llib-ltermlib ; \
210*7c1d3545SGordon Ross		$(SYMLINK) ./llib-lcurses llib-ltermlib;
211f808c858Sraf
212f808c858Sraf#
213f808c858Sraf# Include library targets
214f808c858Sraf#
215f808c858Srafinclude ../../Makefile.targ
216