1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gateLIBRARY= libcurses.a 30*7c478bd9Sstevel@tonic-gateVERS= .2 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate# objects are grouped by source directory 33*7c478bd9Sstevel@tonic-gate# all of the libxcurses source files are in src/libc 34*7c478bd9Sstevel@tonic-gateOBJECTS= $(XCURSES) $(MKS) $(WIDE) 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate# XCURSES source files are in src/libc/xcurses 37*7c478bd9Sstevel@tonic-gateXCURSES= \ 38*7c478bd9Sstevel@tonic-gateadd_wch.o dupwin.o longname.o strname.o wbrdr.o \ 39*7c478bd9Sstevel@tonic-gateaddch.o echo_wch.o m_cc.o termattr.o wbrdr_st.o \ 40*7c478bd9Sstevel@tonic-gateaddchn.o echochar.o meta.o tgetent.o wchgat.o \ 41*7c478bd9Sstevel@tonic-gateaddnstr.o endwin.o move.o tgetflag.o wclear.o \ 42*7c478bd9Sstevel@tonic-gateaddnws.o flushinp.o mvcur.o tgetnum.o wclrbot.o \ 43*7c478bd9Sstevel@tonic-gateaddwchn.o get_wch.o mvwin.o tgetstr.o wclreol.o \ 44*7c478bd9Sstevel@tonic-gateattr_on.o getcchar.o napms.o tgoto.o wdelch.o \ 45*7c478bd9Sstevel@tonic-gateattron.o getch.o newpad.o tigetfla.o wget_wch.o \ 46*7c478bd9Sstevel@tonic-gatebaudrate.o getn_ws.o newterm.o tigetnum.o wgetch.o \ 47*7c478bd9Sstevel@tonic-gatebeep.o getnstr.o newwin.o tigetstr.o wgetn_ws.o \ 48*7c478bd9Sstevel@tonic-gatebkgd.o getwin.o noecho.o timeout.o whln.o \ 49*7c478bd9Sstevel@tonic-gatebkgdset.o has.o nonl.o touched.o whln_st.o \ 50*7c478bd9Sstevel@tonic-gatebkgrnd.o hln.o numcode.o touchwin.o win_wch.o \ 51*7c478bd9Sstevel@tonic-gatebkgrndst.o hln_st.o numfnam.o tparm.o win_wchn.o \ 52*7c478bd9Sstevel@tonic-gateboolcode.o in_wch.o numname.o tputs.o winch.o \ 53*7c478bd9Sstevel@tonic-gateboolfnam.o in_wchn.o overlay.o winchn.o \ 54*7c478bd9Sstevel@tonic-gateboolname.o inch.o pecho_wc.o unctrl.o winnstr.o \ 55*7c478bd9Sstevel@tonic-gatebox.o inchn.o pechoch.o vid_attr.o winnwstr.o \ 56*7c478bd9Sstevel@tonic-gatebox_set.o initscr.o prefresh.o vid_puts.o wins_nws.o \ 57*7c478bd9Sstevel@tonic-gatebrdr.o innstr.o printw.o vidattr.o wins_wch.o \ 58*7c478bd9Sstevel@tonic-gatebrdr_st.o innwstr.o ptrmove.o vw_print.o winsch.o \ 59*7c478bd9Sstevel@tonic-gatecbreak.o ins_nws.o qiflush.o vw_scanw.o winsdel.o \ 60*7c478bd9Sstevel@tonic-gatechgat.o ins_wch.o redraw.o vwprintw.o winsnstr.o \ 61*7c478bd9Sstevel@tonic-gateclear.o insch.o refresh.o vwscanw.o wmove.o \ 62*7c478bd9Sstevel@tonic-gateclearok.o insnstr.o savetty.o wacs.o wredraw.o \ 63*7c478bd9Sstevel@tonic-gateclrbot.o intrflsh.o scanw.o wadd_wch.o wrefresh.o \ 64*7c478bd9Sstevel@tonic-gateclreol.o scr_dump.o waddch.o wscrl.o \ 65*7c478bd9Sstevel@tonic-gatecolor.o isendwin.o scrl.o waddchn.o wscrreg.o \ 66*7c478bd9Sstevel@tonic-gatecopywin.o key_name.o scrreg.o waddnstr.o wsyncdn.o \ 67*7c478bd9Sstevel@tonic-gatecurs_set.o keyindex.o setcchar.o waddnws.o wsyncup.o \ 68*7c478bd9Sstevel@tonic-gatedelay.o keyname.o setup.o waddwchn.o wtimeout.o \ 69*7c478bd9Sstevel@tonic-gatedelch.o keypad.o slk.o wattr_on.o wtouchln.o \ 70*7c478bd9Sstevel@tonic-gatedeleteln.o killchar.o strcode.o wattron.o wunctrl.o \ 71*7c478bd9Sstevel@tonic-gatedoupdate.o killwch.o strfnam.o wbkgrnd.o 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate# MKS source files are in src/libc/mks 74*7c478bd9Sstevel@tonic-gateMKS= m_crcpos.o 75*7c478bd9Sstevel@tonic-gate 76*7c478bd9Sstevel@tonic-gate# WIDE source files are in src/libc/wide 77*7c478bd9Sstevel@tonic-gateWIDE= wio_get.o wio_put.o 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gate# include library definitions 80*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateMAPFILE= $(MAPDIR)/mapfile 83*7c478bd9Sstevel@tonic-gateSRCS= $(XCURSES:%.o=../src/libc/xcurses/%.c) \ 84*7c478bd9Sstevel@tonic-gate $(MKS:%.o=../src/libc/mks/%.c) \ 85*7c478bd9Sstevel@tonic-gate $(WIDE:%.o=../src/libc/wide/%.c) 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate# definitions for install target 90*7c478bd9Sstevel@tonic-gateROOTLIBDIR= $(ROOT)/usr/xpg4/lib 91*7c478bd9Sstevel@tonic-gateROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64) 92*7c478bd9Sstevel@tonic-gateROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../src/libc/llib-lcurses 95*7c478bd9Sstevel@tonic-gate 96*7c478bd9Sstevel@tonic-gateLINTSRC= $(LINTLIB:%.ln=%) 97*7c478bd9Sstevel@tonic-gate 98*7c478bd9Sstevel@tonic-gateDYNFLAGS += -M$(MAPFILE) 99*7c478bd9Sstevel@tonic-gateLDLIBS += -lc 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gateCPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master) 102*7c478bd9Sstevel@tonic-gate 103*7c478bd9Sstevel@tonic-gate# 104*7c478bd9Sstevel@tonic-gate# If and when somebody gets around to messaging this, CLOBBERFILE should not 105*7c478bd9Sstevel@tonic-gate# be cleared (so that any .po file will be clobbered. 106*7c478bd9Sstevel@tonic-gate# 107*7c478bd9Sstevel@tonic-gateCLOBBERFILES= libcurses.so libcurses.so$(VERS) $(MAPFILE) 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 110*7c478bd9Sstevel@tonic-gate 111*7c478bd9Sstevel@tonic-gateall: $(LIBS) 112*7c478bd9Sstevel@tonic-gate 113*7c478bd9Sstevel@tonic-gatelint: lintcheck 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gate$(DYNLIB): $(MAPFILE) 116*7c478bd9Sstevel@tonic-gate 117*7c478bd9Sstevel@tonic-gate$(MAPFILE): 118*7c478bd9Sstevel@tonic-gate @cd $(MAPDIR); $(MAKE) mapfile 119*7c478bd9Sstevel@tonic-gate 120*7c478bd9Sstevel@tonic-gate# 121*7c478bd9Sstevel@tonic-gate# Include library targets 122*7c478bd9Sstevel@tonic-gate# 123*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 124*7c478bd9Sstevel@tonic-gate 125*7c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../src/libc/xcurses/%.c 126*7c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 127*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 128*7c478bd9Sstevel@tonic-gate 129*7c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../src/libc/mks/%.c 130*7c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 131*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 132*7c478bd9Sstevel@tonic-gate 133*7c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../src/libc/wide/%.c 134*7c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 135*7c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 136*7c478bd9Sstevel@tonic-gate 137*7c478bd9Sstevel@tonic-gate# install rule for lint library target 138*7c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../src/libc/% 139*7c478bd9Sstevel@tonic-gate $(INS.file) 140*7c478bd9Sstevel@tonic-gate 141*7c478bd9Sstevel@tonic-gate# install rule for 64 bit lint library target 142*7c478bd9Sstevel@tonic-gate$(ROOTLINTDIR64)/%: ../src/libc/% 143*7c478bd9Sstevel@tonic-gate $(INS.file) 144