xref: /titanic_41/usr/src/lib/libxcurses2/Makefile.com (revision 2654012f83cec5dc15b61dfe3e4a4915f186e7a6)
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
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY=	libcurses.a
29VERS=	.2
30
31# objects are grouped by source directory
32# all of the libxcurses source files are in src/libc
33OBJECTS= $(XCURSES)	$(MKS)	$(WIDE)
34
35# XCURSES source files are in src/libc/xcurses
36XCURSES= \
37add_wch.o	dupwin.o	longname.o	strname.o	wbrdr.o \
38addch.o		echo_wch.o	m_cc.o		termattr.o	wbrdr_st.o \
39addchn.o	echochar.o	meta.o		tgetent.o	wchgat.o \
40addnstr.o	endwin.o	move.o		tgetflag.o	wclear.o \
41addnws.o	flushinp.o	mvcur.o		tgetnum.o	wclrbot.o \
42addwchn.o	get_wch.o	mvwin.o		tgetstr.o	wclreol.o \
43attr_on.o	getcchar.o	napms.o		tgoto.o		wdelch.o \
44attron.o	getch.o		newpad.o	tigetfla.o	wget_wch.o \
45baudrate.o	getn_ws.o	newterm.o	tigetnum.o	wgetch.o \
46beep.o		getnstr.o	newwin.o	tigetstr.o	wgetn_ws.o \
47bkgd.o		getwin.o	noecho.o	timeout.o	whln.o \
48bkgdset.o	has.o		nonl.o		touched.o	whln_st.o \
49bkgrnd.o	hln.o		numcode.o	touchwin.o	win_wch.o \
50bkgrndst.o	hln_st.o	numfnam.o	tparm.o		win_wchn.o \
51boolcode.o	in_wch.o	numname.o	tputs.o		winch.o \
52boolfnam.o	in_wchn.o	overlay.o	winchn.o \
53boolname.o	inch.o		pecho_wc.o	unctrl.o	winnstr.o \
54box.o		inchn.o		pechoch.o	vid_attr.o	winnwstr.o \
55box_set.o	initscr.o	prefresh.o	vid_puts.o	wins_nws.o \
56brdr.o		innstr.o	printw.o	vidattr.o	wins_wch.o \
57brdr_st.o	innwstr.o	ptrmove.o	vw_print.o	winsch.o \
58cbreak.o	ins_nws.o	qiflush.o	vw_scanw.o	winsdel.o \
59chgat.o		ins_wch.o	redraw.o	vwprintw.o	winsnstr.o \
60clear.o		insch.o		refresh.o	vwscanw.o	wmove.o \
61clearok.o	insnstr.o	savetty.o	wacs.o		wredraw.o \
62clrbot.o	intrflsh.o	scanw.o		wadd_wch.o	wrefresh.o \
63clreol.o	scr_dump.o	waddch.o	wscrl.o \
64color.o		isendwin.o	scrl.o		waddchn.o	wscrreg.o \
65copywin.o	key_name.o	scrreg.o	waddnstr.o	wsyncdn.o \
66curs_set.o	keyindex.o	setcchar.o	waddnws.o	wsyncup.o \
67delay.o		keyname.o	setup.o		waddwchn.o	wtimeout.o \
68delch.o		keypad.o	slk.o		wattr_on.o	wtouchln.o \
69deleteln.o	killchar.o	strcode.o	wattron.o	wunctrl.o \
70doupdate.o	killwch.o	strfnam.o	wbkgrnd.o
71
72# MKS source files are in src/libc/mks
73MKS= m_crcpos.o
74
75# WIDE source files are in src/libc/wide
76WIDE= wio_get.o	wio_put.o
77
78# include library definitions
79include ../../Makefile.lib
80
81SRCDIR =	../src
82
83SRCS=		$(XCURSES:%.o=../src/libc/xcurses/%.c) \
84		$(MKS:%.o=../src/libc/mks/%.c) \
85		$(WIDE:%.o=../src/libc/wide/%.c)
86
87LIBS =		$(DYNLIB) $(LINTLIB)
88
89# definitions for install target
90ROOTLIBDIR=	$(ROOT)/usr/xpg4/lib
91ROOTLIBDIR64=	$(ROOT)/usr/xpg4/lib/$(MACH64)
92ROOTLIBS=	$(LIBS:%=$(ROOTLIBDIR)/%)
93
94$(LINTLIB):= SRCS=../src/libc/llib-lcurses
95
96LINTSRC=	$(LINTLIB:%.ln=%)
97
98LDLIBS += -lc
99
100CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master)
101
102#
103# If and when somebody gets around to messaging this, CLOBBERFILE should not
104# be cleared (so that any .po file will be clobbered.
105#
106CLOBBERFILES=	libcurses.so libcurses.so$(VERS)
107
108.KEEP_STATE:
109
110all: $(LIBS)
111
112lint: lintcheck
113
114#
115# Include library targets
116#
117include ../../Makefile.targ
118
119objs/%.o pics/%.o:	../src/libc/xcurses/%.c
120	$(COMPILE.c) -o $@ $<
121	$(POST_PROCESS_O)
122
123objs/%.o pics/%.o:	../src/libc/mks/%.c
124	$(COMPILE.c) -o $@ $<
125	$(POST_PROCESS_O)
126
127objs/%.o pics/%.o:	../src/libc/wide/%.c
128	$(COMPILE.c) -o $@ $<
129	$(POST_PROCESS_O)
130
131# install rule for lint library target
132$(ROOTLINTDIR)/%: ../src/libc/%
133	$(INS.file)
134
135# install rule for 64 bit lint library target
136$(ROOTLINTDIR64)/%: ../src/libc/%
137	$(INS.file)
138