xref: /titanic_52/usr/src/lib/libxcurses2/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
22f808c858Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateLIBRARY=	libcurses.a
277c478bd9Sstevel@tonic-gateVERS=	.2
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate# objects are grouped by source directory
307c478bd9Sstevel@tonic-gate# all of the libxcurses source files are in src/libc
317c478bd9Sstevel@tonic-gateOBJECTS= $(XCURSES)	$(MKS)	$(WIDE)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate# XCURSES source files are in src/libc/xcurses
347c478bd9Sstevel@tonic-gateXCURSES= \
357c478bd9Sstevel@tonic-gateadd_wch.o	dupwin.o	longname.o	strname.o	wbrdr.o \
367c478bd9Sstevel@tonic-gateaddch.o		echo_wch.o	m_cc.o		termattr.o	wbrdr_st.o \
377c478bd9Sstevel@tonic-gateaddchn.o	echochar.o	meta.o		tgetent.o	wchgat.o \
387c478bd9Sstevel@tonic-gateaddnstr.o	endwin.o	move.o		tgetflag.o	wclear.o \
397c478bd9Sstevel@tonic-gateaddnws.o	flushinp.o	mvcur.o		tgetnum.o	wclrbot.o \
407c478bd9Sstevel@tonic-gateaddwchn.o	get_wch.o	mvwin.o		tgetstr.o	wclreol.o \
417c478bd9Sstevel@tonic-gateattr_on.o	getcchar.o	napms.o		tgoto.o		wdelch.o \
427c478bd9Sstevel@tonic-gateattron.o	getch.o		newpad.o	tigetfla.o	wget_wch.o \
437c478bd9Sstevel@tonic-gatebaudrate.o	getn_ws.o	newterm.o	tigetnum.o	wgetch.o \
447c478bd9Sstevel@tonic-gatebeep.o		getnstr.o	newwin.o	tigetstr.o	wgetn_ws.o \
457c478bd9Sstevel@tonic-gatebkgd.o		getwin.o	noecho.o	timeout.o	whln.o \
467c478bd9Sstevel@tonic-gatebkgdset.o	has.o		nonl.o		touched.o	whln_st.o \
477c478bd9Sstevel@tonic-gatebkgrnd.o	hln.o		numcode.o	touchwin.o	win_wch.o \
487c478bd9Sstevel@tonic-gatebkgrndst.o	hln_st.o	numfnam.o	tparm.o		win_wchn.o \
497c478bd9Sstevel@tonic-gateboolcode.o	in_wch.o	numname.o	tputs.o		winch.o \
507c478bd9Sstevel@tonic-gateboolfnam.o	in_wchn.o	overlay.o	winchn.o \
517c478bd9Sstevel@tonic-gateboolname.o	inch.o		pecho_wc.o	unctrl.o	winnstr.o \
527c478bd9Sstevel@tonic-gatebox.o		inchn.o		pechoch.o	vid_attr.o	winnwstr.o \
537c478bd9Sstevel@tonic-gatebox_set.o	initscr.o	prefresh.o	vid_puts.o	wins_nws.o \
547c478bd9Sstevel@tonic-gatebrdr.o		innstr.o	printw.o	vidattr.o	wins_wch.o \
557c478bd9Sstevel@tonic-gatebrdr_st.o	innwstr.o	ptrmove.o	vw_print.o	winsch.o \
567c478bd9Sstevel@tonic-gatecbreak.o	ins_nws.o	qiflush.o	vw_scanw.o	winsdel.o \
577c478bd9Sstevel@tonic-gatechgat.o		ins_wch.o	redraw.o	vwprintw.o	winsnstr.o \
587c478bd9Sstevel@tonic-gateclear.o		insch.o		refresh.o	vwscanw.o	wmove.o \
597c478bd9Sstevel@tonic-gateclearok.o	insnstr.o	savetty.o	wacs.o		wredraw.o \
607c478bd9Sstevel@tonic-gateclrbot.o	intrflsh.o	scanw.o		wadd_wch.o	wrefresh.o \
617c478bd9Sstevel@tonic-gateclreol.o	scr_dump.o	waddch.o	wscrl.o \
627c478bd9Sstevel@tonic-gatecolor.o		isendwin.o	scrl.o		waddchn.o	wscrreg.o \
637c478bd9Sstevel@tonic-gatecopywin.o	key_name.o	scrreg.o	waddnstr.o	wsyncdn.o \
647c478bd9Sstevel@tonic-gatecurs_set.o	keyindex.o	setcchar.o	waddnws.o	wsyncup.o \
657c478bd9Sstevel@tonic-gatedelay.o		keyname.o	setup.o		waddwchn.o	wtimeout.o \
667c478bd9Sstevel@tonic-gatedelch.o		keypad.o	slk.o		wattr_on.o	wtouchln.o \
677c478bd9Sstevel@tonic-gatedeleteln.o	killchar.o	strcode.o	wattron.o	wunctrl.o \
687c478bd9Sstevel@tonic-gatedoupdate.o	killwch.o	strfnam.o	wbkgrnd.o
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate# MKS source files are in src/libc/mks
717c478bd9Sstevel@tonic-gateMKS= m_crcpos.o
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate# WIDE source files are in src/libc/wide
747c478bd9Sstevel@tonic-gateWIDE= wio_get.o	wio_put.o
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate# include library definitions
777c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
787c478bd9Sstevel@tonic-gate
79f808c858SrafSRCDIR =	../src
80f808c858Sraf
817c478bd9Sstevel@tonic-gateSRCS=		$(XCURSES:%.o=../src/libc/xcurses/%.c) \
827c478bd9Sstevel@tonic-gate		$(MKS:%.o=../src/libc/mks/%.c) \
837c478bd9Sstevel@tonic-gate		$(WIDE:%.o=../src/libc/wide/%.c)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gateLIBS =		$(DYNLIB) $(LINTLIB)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate# definitions for install target
887c478bd9Sstevel@tonic-gateROOTLIBDIR=	$(ROOT)/usr/xpg4/lib
897c478bd9Sstevel@tonic-gateROOTLIBDIR64=	$(ROOT)/usr/xpg4/lib/$(MACH64)
907c478bd9Sstevel@tonic-gateROOTLIBS=	$(LIBS:%=$(ROOTLIBDIR)/%)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../src/libc/llib-lcurses
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gateLINTSRC=	$(LINTLIB:%.ln=%)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gateLDLIBS += -lc
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateCPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master)
99*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
100*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate#
1037c478bd9Sstevel@tonic-gate# If and when somebody gets around to messaging this, CLOBBERFILE should not
1047c478bd9Sstevel@tonic-gate# be cleared (so that any .po file will be clobbered.
1057c478bd9Sstevel@tonic-gate#
106f808c858SrafCLOBBERFILES=	libcurses.so libcurses.so$(VERS)
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gate.KEEP_STATE:
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gateall: $(LIBS)
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gatelint: lintcheck
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate#
1157c478bd9Sstevel@tonic-gate# Include library targets
1167c478bd9Sstevel@tonic-gate#
1177c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o:	../src/libc/xcurses/%.c
1207c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1217c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o:	../src/libc/mks/%.c
1247c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1257c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1267c478bd9Sstevel@tonic-gate
1277c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o:	../src/libc/wide/%.c
1287c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1297c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate# install rule for lint library target
1327c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../src/libc/%
1337c478bd9Sstevel@tonic-gate	$(INS.file)
1347c478bd9Sstevel@tonic-gate
1357c478bd9Sstevel@tonic-gate# install rule for 64 bit lint library target
1367c478bd9Sstevel@tonic-gate$(ROOTLINTDIR64)/%: ../src/libc/%
1377c478bd9Sstevel@tonic-gate	$(INS.file)
138