xref: /titanic_53/usr/src/ucblib/libcurses/Makefile.com (revision 24da5b34f49324ed742a340010ed5bd3d4e06625)
17c478bd9Sstevel@tonic-gate#
2f808c858Sraf# CDDL HEADER START
3f808c858Sraf#
4f808c858Sraf# 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.
7f808c858Sraf#
8f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f808c858Sraf# or http://www.opensolaris.org/os/licensing.
10f808c858Sraf# See the License for the specific language governing permissions
11f808c858Sraf# and limitations under the License.
12f808c858Sraf#
13f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each
14f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the
16f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying
17f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
18f808c858Sraf#
19f808c858Sraf# CDDL HEADER END
20f808c858Sraf#
21f808c858Sraf#
22*24da5b34Srie# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateLIBRARY=	libcurses.a
297c478bd9Sstevel@tonic-gateVERS=		.1
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateOBJECTS= 		\
327c478bd9Sstevel@tonic-gate	addch.o		\
337c478bd9Sstevel@tonic-gate	addstr.o	\
347c478bd9Sstevel@tonic-gate	box.o		\
357c478bd9Sstevel@tonic-gate	clear.o		\
367c478bd9Sstevel@tonic-gate	clrtobot.o	\
377c478bd9Sstevel@tonic-gate	clrtoeol.o	\
387c478bd9Sstevel@tonic-gate	cr_put.o	\
397c478bd9Sstevel@tonic-gate	cr_tty.o	\
407c478bd9Sstevel@tonic-gate	curses.o	\
417c478bd9Sstevel@tonic-gate	delch.o		\
427c478bd9Sstevel@tonic-gate	deleteln.o	\
437c478bd9Sstevel@tonic-gate	delwin.o	\
447c478bd9Sstevel@tonic-gate	endwin.o	\
457c478bd9Sstevel@tonic-gate	erase.o		\
467c478bd9Sstevel@tonic-gate	fullname.o	\
477c478bd9Sstevel@tonic-gate	getch.o		\
487c478bd9Sstevel@tonic-gate	getstr.o	\
497c478bd9Sstevel@tonic-gate	id_subwins.o	\
507c478bd9Sstevel@tonic-gate	idlok.o		\
517c478bd9Sstevel@tonic-gate	initscr.o	\
527c478bd9Sstevel@tonic-gate	insch.o		\
537c478bd9Sstevel@tonic-gate	insertln.o	\
547c478bd9Sstevel@tonic-gate	longname.o	\
557c478bd9Sstevel@tonic-gate	move.o		\
567c478bd9Sstevel@tonic-gate	mvprintw.o	\
577c478bd9Sstevel@tonic-gate	mvscanw.o	\
587c478bd9Sstevel@tonic-gate	mvwin.o		\
597c478bd9Sstevel@tonic-gate	newwin.o	\
607c478bd9Sstevel@tonic-gate	overlay.o	\
617c478bd9Sstevel@tonic-gate	overwrite.o	\
627c478bd9Sstevel@tonic-gate	printw.o	\
637c478bd9Sstevel@tonic-gate	putchar.o	\
647c478bd9Sstevel@tonic-gate	refresh.o	\
657c478bd9Sstevel@tonic-gate	scanw.o		\
667c478bd9Sstevel@tonic-gate	scroll.o	\
677c478bd9Sstevel@tonic-gate	standout.o	\
687c478bd9Sstevel@tonic-gate	toucholap.o	\
697c478bd9Sstevel@tonic-gate	touchwin.o	\
707c478bd9Sstevel@tonic-gate	tstp.o		\
717c478bd9Sstevel@tonic-gate	unctrl.o
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate# include library definitions
747c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gateROOTLIBDIR=	$(ROOT)/usr/ucblib
777c478bd9Sstevel@tonic-gateROOTLIBDIR64=	$(ROOT)/usr/ucblib/$(MACH64)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB)
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateLINTSRC= $(LINTLIB:%.ln=%)
827c478bd9Sstevel@tonic-gateROOTLINTDIR= $(ROOTLIBDIR)
837c478bd9Sstevel@tonic-gateROOTLINTDIR64= $(ROOTLIBDIR)/$(MACH64)
847c478bd9Sstevel@tonic-gateROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
857c478bd9Sstevel@tonic-gateROOTLINT64= $(LINTSRC:%=$(ROOTLINTDIR64)/%)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate# install rule for lint source file target
887c478bd9Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../%
897c478bd9Sstevel@tonic-gate	$(INS.file)
907c478bd9Sstevel@tonic-gate$(ROOTLINTDIR64)/%: ../%
917c478bd9Sstevel@tonic-gate	$(INS.file)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../llib-lcurses
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateCFLAGS	+=	$(CCVERBOSE)
967c478bd9Sstevel@tonic-gateCFLAGS64 +=	$(CCVERBOSE)
97*24da5b34SrieDYNFLAGS +=	$(ZINTERPOSE)
98f808c858SrafDYNFLAGS32 =	-R/usr/ucblib
99f808c858SrafDYNFLAGS64 =	-R/usr/ucblib/$(MACH64)
1007c478bd9Sstevel@tonic-gateLDLIBS +=	-ltermcap -lucb -lc
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gateCPPFLAGS = -I$(ROOT)/usr/ucbinclude -I../../../lib/libc/inc $(CPPFLAGS.master)
1037c478bd9Sstevel@tonic-gate
1047c478bd9Sstevel@tonic-gate.KEEP_STATE:
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gateall: $(LIBS)
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gatelint: lintcheck
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gate#
1117c478bd9Sstevel@tonic-gate# Include library targets
1127c478bd9Sstevel@tonic-gate#
1137c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../%.c
1167c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1177c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
118