xref: /titanic_44/usr/src/ucblib/libcurses/Makefile.com (revision ee5416c9d7e449233197d5d20bc6b81e4ff091b2)
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 2007 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=		.1
30
31OBJECTS= 		\
32	addch.o		\
33	addstr.o	\
34	box.o		\
35	clear.o		\
36	clrtobot.o	\
37	clrtoeol.o	\
38	cr_put.o	\
39	cr_tty.o	\
40	curses.o	\
41	delch.o		\
42	deleteln.o	\
43	delwin.o	\
44	endwin.o	\
45	erase.o		\
46	fullname.o	\
47	getch.o		\
48	getstr.o	\
49	id_subwins.o	\
50	idlok.o		\
51	initscr.o	\
52	insch.o		\
53	insertln.o	\
54	longname.o	\
55	move.o		\
56	mvprintw.o	\
57	mvscanw.o	\
58	mvwin.o		\
59	newwin.o	\
60	overlay.o	\
61	overwrite.o	\
62	printw.o	\
63	putchar.o	\
64	refresh.o	\
65	scanw.o		\
66	scroll.o	\
67	standout.o	\
68	toucholap.o	\
69	touchwin.o	\
70	tstp.o		\
71	unctrl.o
72
73# include library definitions
74include $(SRC)/lib/Makefile.lib
75
76ROOTLIBDIR=	$(ROOT)/usr/ucblib
77ROOTLIBDIR64=	$(ROOT)/usr/ucblib/$(MACH64)
78
79LIBS = $(DYNLIB) $(LINTLIB)
80
81LINTSRC= $(LINTLIB:%.ln=%)
82ROOTLINTDIR= $(ROOTLIBDIR)
83ROOTLINTDIR64= $(ROOTLIBDIR)/$(MACH64)
84ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
85ROOTLINT64= $(LINTSRC:%=$(ROOTLINTDIR64)/%)
86
87# install rule for lint source file target
88$(ROOTLINTDIR)/%: ../%
89	$(INS.file)
90$(ROOTLINTDIR64)/%: ../%
91	$(INS.file)
92
93$(LINTLIB):= SRCS=../llib-lcurses
94
95CFLAGS	+=	$(CCVERBOSE)
96CFLAGS64 +=	$(CCVERBOSE)
97DYNFLAGS +=	$(ZINTERPOSE)
98DYNFLAGS32 =	-R/usr/ucblib
99DYNFLAGS64 =	-R/usr/ucblib/$(MACH64)
100LDLIBS +=	-ltermcap -lucb -lc
101
102CPPFLAGS = -I$(ROOT)/usr/ucbinclude -I../../../lib/libc/inc $(CPPFLAGS.master)
103
104.KEEP_STATE:
105
106all: $(LIBS)
107
108lint: lintcheck
109
110#
111# Include library targets
112#
113include $(SRC)/lib/Makefile.targ
114
115objs/%.o pics/%.o: ../%.c
116	$(COMPILE.c) -o $@ $<
117	$(POST_PROCESS_O)
118