xref: /titanic_50/usr/src/lib/libxcurses/Makefile.com (revision 554ff184129088135ad2643c1c9832174a17be88)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libcurses.a
30VERS=	.1
31
32# objects are grouped by source directory
33# all of the libxcurses source files are in src/libc
34OBJECTS= \
35$(XCURSES)	$(GEN)		$(I18N)		$(MKS) \
36$(STDIO)	$(WIDE)
37
38# XCURSES source files are in src/libc/xcurses
39XCURSES= \
40add_wch.o	dupwin.o	longname.o	strname.o	wbrdr.o \
41addch.o		echo_wch.o	m_cc.o		termattr.o	wbrdr_st.o \
42addchn.o	echochar.o	meta.o		tgetent.o	wchgat.o \
43addnstr.o	endwin.o	move.o		tgetflag.o	wclear.o \
44addnws.o	flushinp.o	mvcur.o		tgetnum.o	wclrbot.o \
45addwchn.o	get_wch.o	mvwin.o		tgetstr.o	wclreol.o \
46attr_on.o	getcchar.o	napms.o		tgoto.o		wdelch.o \
47attron.o	getch.o		newpad.o	tigetfla.o	wget_wch.o \
48baudrate.o	getn_ws.o	newterm.o	tigetnum.o	wgetch.o \
49beep.o		getnstr.o	newwin.o	tigetstr.o	wgetn_ws.o \
50bkgd.o		getwin.o	noecho.o	timeout.o	whln.o \
51bkgdset.o	has.o		nonl.o		touched.o	whln_st.o \
52bkgrnd.o	hln.o		numcode.o	touchwin.o	win_wch.o \
53bkgrndst.o	hln_st.o	numfnam.o	tparm.o		win_wchn.o \
54boolcode.o	in_wch.o	numname.o	tputs.o		winch.o \
55boolfnam.o	in_wchn.o	overlay.o	trace.o		winchn.o \
56boolname.o	inch.o		pecho_wc.o	unctrl.o	winnstr.o \
57box.o		inchn.o		pechoch.o	vid_attr.o	winnwstr.o \
58box_set.o	initscr.o	prefresh.o	vid_puts.o	wins_nws.o \
59brdr.o		innstr.o	printw.o	vidattr.o	wins_wch.o \
60brdr_st.o	innwstr.o	ptrmove.o	vw_print.o	winsch.o \
61cbreak.o	ins_nws.o	qiflush.o	vw_scanw.o	winsdel.o \
62chgat.o		ins_wch.o	redraw.o	vwprintw.o	winsnstr.o \
63clear.o		insch.o		refresh.o	vwscanw.o	wmove.o \
64clearok.o	insnstr.o	savetty.o	wacs.o		wredraw.o \
65clrbot.o	intrflsh.o	scanw.o		wadd_wch.o	wrefresh.o \
66clreol.o			scr_dump.o	waddch.o	wscrl.o \
67color.o		isendwin.o	scrl.o		waddchn.o	wscrreg.o \
68copywin.o	key_name.o	scrreg.o	waddnstr.o	wsyncdn.o \
69curs_set.o	keyindex.o	setcchar.o	waddnws.o	wsyncup.o \
70delay.o		keyname.o	setup.o		waddwchn.o	wtimeout.o \
71delch.o		keypad.o	slk.o		wattr_on.o	wtouchln.o \
72deleteln.o	killchar.o	strcode.o	wattron.o	wunctrl.o \
73doupdate.o	killwch.o	strfnam.o	wbkgrnd.o
74
75# GEN source files are in src/libc/gen
76GEN= \
77base.o		eprintf.o
78
79# I18N source files are in src/libc/i18n
80I18N= \
81m_strmsg.o	m_text.o
82
83# MKS source files are in src/libc/mks
84MKS= \
85m_cmdnam.o	m_errorx.o	m_ord.o		m_strdup.o \
86m_crcpos.o	m_getenv.o	m_pathca.o	m_vsscan.o \
87m_error.o	m_malloc.o	m_pathma.o
88
89# STDIO source files are in src/libc/stdio
90STDIO= \
91vfscanf.o
92
93# WIDE source files are in src/libc/wide
94WIDE= \
95m_mbstow.o	m_wcsdup.o	wio_get.o	wio_put.o
96
97# include library definitions
98include ../../Makefile.lib
99
100MAPFILE=	$(MAPDIR)/mapfile
101SRCS=		$(XCURSES:%.o=../src/libc/xcurses/%.c) \
102		$(GEN:%.o=../src/libc/gen/%.c) \
103		$(I18N:%.o=../src/libc/i18n/%.c) \
104		$(MKS:%.o=../src/libc/mks/%.c) \
105		$(STDIO:%.o=../src/libc/stdio/%.c) \
106		$(WIDE:%.o=../src/libc/wide/%.c)
107
108LIBS =		$(DYNLIB)
109
110# definitions for install target
111ROOTLIBDIR=	$(ROOT)/usr/xpg4/lib
112ROOTLIBDIR64=	$(ROOT)/usr/xpg4/lib/$(MACH64)
113ROOTLIBS=	$(LIBS:%=$(ROOTLIBDIR)/%)
114
115$(LINTLIB):= SRCS=../src/libc/llib-lcurses
116$(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED
117
118LINTSRC=	$(LINTLIB:%.ln=%)
119
120DYNFLAGS +=	-M$(MAPFILE)
121LDLIBS += -lc
122
123CPPFLAGS = -I../h -I../h/solaris2 -I../src/libc/xcurses $(CPPFLAGS.master)
124
125#
126# If and when somebody gets around to messaging this, CLOBBERFILE should not
127# be cleared (so that any .po file will be clobbered.
128#
129CLOBBERFILES=	libcurses.so libcurses.so$(VERS) $(MAPFILE)
130
131.KEEP_STATE:
132
133all: $(LIBS)
134
135lint: lintcheck
136
137$(DYNLIB): 	$(MAPFILE)
138
139$(MAPFILE):
140	@cd $(MAPDIR); $(MAKE) mapfile
141
142#
143# Include library targets
144#
145include ../../Makefile.targ
146
147objs/%.o pics/%.o:	../src/libc/xcurses/%.c
148	$(COMPILE.c) -o $@ $<
149	$(POST_PROCESS_O)
150
151objs/%.o pics/%.o:	../src/libc/gen/%.c
152	$(COMPILE.c) -o $@ $<
153	$(POST_PROCESS_O)
154
155objs/%.o pics/%.o:	../src/libc/i18n/%.c
156	$(COMPILE.c) -o $@ $<
157	$(POST_PROCESS_O)
158
159objs/%.o pics/%.o:	../src/libc/mks/%.c
160	$(COMPILE.c) -o $@ $<
161	$(POST_PROCESS_O)
162
163objs/%.o pics/%.o:	../src/libc/narrow/%.c
164	$(COMPILE.c) -o $@ $<
165	$(POST_PROCESS_O)
166
167objs/%.o pics/%.o:	../src/libc/stdio/%.c
168	$(COMPILE.c) -o $@ $<
169	$(POST_PROCESS_O)
170
171objs/%.o pics/%.o:	../src/libc/wide/%.c
172	$(COMPILE.c) -o $@ $<
173	$(POST_PROCESS_O)
174