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#
225bbb4db2SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
25cadd68eaSJohn Levon# Copyright (c) 2018, Joyent, Inc.
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateLIBRARY=	libcurses.a
287c478bd9Sstevel@tonic-gateVERS=		.1
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateOBJECTS= 		\
317c478bd9Sstevel@tonic-gate	addch.o		\
327c478bd9Sstevel@tonic-gate	addstr.o	\
337c478bd9Sstevel@tonic-gate	box.o		\
347c478bd9Sstevel@tonic-gate	clear.o		\
357c478bd9Sstevel@tonic-gate	clrtobot.o	\
367c478bd9Sstevel@tonic-gate	clrtoeol.o	\
377c478bd9Sstevel@tonic-gate	cr_put.o	\
387c478bd9Sstevel@tonic-gate	cr_tty.o	\
397c478bd9Sstevel@tonic-gate	curses.o	\
407c478bd9Sstevel@tonic-gate	delch.o		\
417c478bd9Sstevel@tonic-gate	deleteln.o	\
427c478bd9Sstevel@tonic-gate	delwin.o	\
437c478bd9Sstevel@tonic-gate	endwin.o	\
447c478bd9Sstevel@tonic-gate	erase.o		\
457c478bd9Sstevel@tonic-gate	fullname.o	\
467c478bd9Sstevel@tonic-gate	getch.o		\
477c478bd9Sstevel@tonic-gate	getstr.o	\
487c478bd9Sstevel@tonic-gate	id_subwins.o	\
497c478bd9Sstevel@tonic-gate	idlok.o		\
507c478bd9Sstevel@tonic-gate	initscr.o	\
517c478bd9Sstevel@tonic-gate	insch.o		\
527c478bd9Sstevel@tonic-gate	insertln.o	\
537c478bd9Sstevel@tonic-gate	longname.o	\
547c478bd9Sstevel@tonic-gate	move.o		\
557c478bd9Sstevel@tonic-gate	mvprintw.o	\
567c478bd9Sstevel@tonic-gate	mvscanw.o	\
577c478bd9Sstevel@tonic-gate	mvwin.o		\
587c478bd9Sstevel@tonic-gate	newwin.o	\
597c478bd9Sstevel@tonic-gate	overlay.o	\
607c478bd9Sstevel@tonic-gate	overwrite.o	\
617c478bd9Sstevel@tonic-gate	printw.o	\
627c478bd9Sstevel@tonic-gate	putchar.o	\
637c478bd9Sstevel@tonic-gate	refresh.o	\
647c478bd9Sstevel@tonic-gate	scanw.o		\
657c478bd9Sstevel@tonic-gate	scroll.o	\
667c478bd9Sstevel@tonic-gate	standout.o	\
677c478bd9Sstevel@tonic-gate	toucholap.o	\
687c478bd9Sstevel@tonic-gate	touchwin.o	\
697c478bd9Sstevel@tonic-gate	tstp.o		\
707c478bd9Sstevel@tonic-gate	unctrl.o
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate# include library definitions
737c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateROOTLIBDIR=	$(ROOT)/usr/ucblib
767c478bd9Sstevel@tonic-gateROOTLIBDIR64=	$(ROOT)/usr/ucblib/$(MACH64)
777c478bd9Sstevel@tonic-gate
785bbb4db2SGarrett D'AmoreLIBS = $(DYNLIB)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gateCFLAGS	+=	$(CCVERBOSE)
817c478bd9Sstevel@tonic-gateCFLAGS64 +=	$(CCVERBOSE)
8224da5b34SrieDYNFLAGS +=	$(ZINTERPOSE)
83f808c858SrafDYNFLAGS32 =	-R/usr/ucblib
84f808c858SrafDYNFLAGS64 =	-R/usr/ucblib/$(MACH64)
857c478bd9Sstevel@tonic-gateLDLIBS +=	-ltermcap -lucb -lc
867c478bd9Sstevel@tonic-gate
875bbb4db2SGarrett D'AmoreCPPFLAGS = -I$(SRC)/ucbhead -I../../../lib/libc/inc $(CPPFLAGS.master)
887c478bd9Sstevel@tonic-gate
897014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
907014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
91*d3b5f563SJohn LevonCERRWARN +=	$(CNOWARN_UNINIT)
927014882cSRichard Lowe
93cadd68eaSJohn Levon# not linted
94cadd68eaSJohn LevonSMATCH=off
95cadd68eaSJohn Levon
967c478bd9Sstevel@tonic-gate.KEEP_STATE:
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateall: $(LIBS)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gatelint: lintcheck
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate#
1037c478bd9Sstevel@tonic-gate# Include library targets
1047c478bd9Sstevel@tonic-gate#
1057c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../%.c
1087c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1097c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
110