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# 227c1d3545SGordon 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 151*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts 152*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 153*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 154*7014882cSRichard Lowe 1557c478bd9Sstevel@tonic-gateLDLIBS += -lc 1567c478bd9Sstevel@tonic-gate 1577c478bd9Sstevel@tonic-gateCPPFLAGS += -I../screen -I../../common/inc 1587c478bd9Sstevel@tonic-gate 1597c478bd9Sstevel@tonic-gateED = ed 1607c478bd9Sstevel@tonic-gateRM = rm -f 1617c478bd9Sstevel@tonic-gate 1627c478bd9Sstevel@tonic-gate# 1637c478bd9Sstevel@tonic-gate# If and when somebody gets around to messaging this, CLOBBERFILE should not 1647c478bd9Sstevel@tonic-gate# be cleared (so that any .po file will be clobbered. 1657c478bd9Sstevel@tonic-gate# 1667c478bd9Sstevel@tonic-gateCLOBBERFILES= libcurses.so libcurses.so$(VERS) 1677c478bd9Sstevel@tonic-gate 1687c478bd9Sstevel@tonic-gateall: $(LIBS) 1697c478bd9Sstevel@tonic-gate 1707c478bd9Sstevel@tonic-gatelint: lintcheck 1717c478bd9Sstevel@tonic-gate 1727c1d3545SGordon Ross# 1737c1d3545SGordon Ross# Install rules for libtermlib.so links. 1747c1d3545SGordon Ross# Augments the rule in Makefile.targ 1757c1d3545SGordon Ross# 1767c1d3545SGordon Ross$(ROOTLIBDIR)/$(LIBLINKS) := INS.liblink= \ 1777c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ 1787c478bd9Sstevel@tonic-gate cd $(ROOTLIBDIR); \ 1797c1d3545SGordon Ross $(RM) libtermlib.so libtermlib.so$(VERS); \ 1807c478bd9Sstevel@tonic-gate $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ 1817c1d3545SGordon Ross $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; 1827c478bd9Sstevel@tonic-gate 1837c1d3545SGordon Ross$(ROOTLIBDIR64)/$(LIBLINKS) := INS.liblink64= \ 1847c1d3545SGordon Ross $(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \ 1857c1d3545SGordon Ross cd $(ROOTLIBDIR64); \ 1867c1d3545SGordon Ross $(RM) libtermlib.so libtermlib.so$(VERS);\ 1877c1d3545SGordon Ross $(SYMLINK) libcurses.so$(VERS) libtermlib.so$(VERS); \ 1887c1d3545SGordon Ross $(SYMLINK) libtermlib.so$(VERS) libtermlib.so; 1897c1d3545SGordon Ross 1907c1d3545SGordon Ross# 1917c1d3545SGordon Ross# Install rules for libtermlib.ln links. 1927c1d3545SGordon Ross# Augments a pattern rule in Makefile.targ 1937c1d3545SGordon Ross# 1947c1d3545SGordon Ross$(ROOTLIBDIR)/$(LINTLIB) := INS.file= \ 1957c1d3545SGordon Ross -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \ 1967c1d3545SGordon Ross cd $(ROOTLIBDIR); \ 1977c1d3545SGordon Ross $(RM) llib-ltermlib.ln ; \ 1987c1d3545SGordon Ross $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; 1997c1d3545SGordon Ross 2007c1d3545SGordon Ross$(ROOTLIBDIR64)/$(LINTLIB) := INS.file= \ 2017c1d3545SGordon Ross -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \ 2027c1d3545SGordon Ross cd $(ROOTLIBDIR64); \ 2037c1d3545SGordon Ross $(RM) llib-ltermlib.ln ; \ 2047c1d3545SGordon Ross $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln; 2057c1d3545SGordon Ross 2067c1d3545SGordon Ross# 2077c1d3545SGordon Ross# Install rule for the lint source, which is installed only in 2087c1d3545SGordon Ross# the default library dir, not MACH64 etc. 2097c1d3545SGordon Ross# 2107c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../screen/% 2117c478bd9Sstevel@tonic-gate $(INS.file) 2127c478bd9Sstevel@tonic-gate cd $(ROOTLINTDIR); \ 2137c1d3545SGordon Ross $(RM) llib-ltermlib ; \ 2147c1d3545SGordon Ross $(SYMLINK) ./llib-lcurses llib-ltermlib; 215f808c858Sraf 216f808c858Sraf# 217f808c858Sraf# Include library targets 218f808c858Sraf# 219f808c858Srafinclude ../../Makefile.targ 220