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# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateLIBRARY= libcurses.a 277c478bd9Sstevel@tonic-gateVERS= .1 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateOBJECTS= \ 307c478bd9Sstevel@tonic-gate addch.o \ 317c478bd9Sstevel@tonic-gate addstr.o \ 327c478bd9Sstevel@tonic-gate box.o \ 337c478bd9Sstevel@tonic-gate clear.o \ 347c478bd9Sstevel@tonic-gate clrtobot.o \ 357c478bd9Sstevel@tonic-gate clrtoeol.o \ 367c478bd9Sstevel@tonic-gate cr_put.o \ 377c478bd9Sstevel@tonic-gate cr_tty.o \ 387c478bd9Sstevel@tonic-gate curses.o \ 397c478bd9Sstevel@tonic-gate delch.o \ 407c478bd9Sstevel@tonic-gate deleteln.o \ 417c478bd9Sstevel@tonic-gate delwin.o \ 427c478bd9Sstevel@tonic-gate endwin.o \ 437c478bd9Sstevel@tonic-gate erase.o \ 447c478bd9Sstevel@tonic-gate fullname.o \ 457c478bd9Sstevel@tonic-gate getch.o \ 467c478bd9Sstevel@tonic-gate getstr.o \ 477c478bd9Sstevel@tonic-gate id_subwins.o \ 487c478bd9Sstevel@tonic-gate idlok.o \ 497c478bd9Sstevel@tonic-gate initscr.o \ 507c478bd9Sstevel@tonic-gate insch.o \ 517c478bd9Sstevel@tonic-gate insertln.o \ 527c478bd9Sstevel@tonic-gate longname.o \ 537c478bd9Sstevel@tonic-gate move.o \ 547c478bd9Sstevel@tonic-gate mvprintw.o \ 557c478bd9Sstevel@tonic-gate mvscanw.o \ 567c478bd9Sstevel@tonic-gate mvwin.o \ 577c478bd9Sstevel@tonic-gate newwin.o \ 587c478bd9Sstevel@tonic-gate overlay.o \ 597c478bd9Sstevel@tonic-gate overwrite.o \ 607c478bd9Sstevel@tonic-gate printw.o \ 617c478bd9Sstevel@tonic-gate putchar.o \ 627c478bd9Sstevel@tonic-gate refresh.o \ 637c478bd9Sstevel@tonic-gate scanw.o \ 647c478bd9Sstevel@tonic-gate scroll.o \ 657c478bd9Sstevel@tonic-gate standout.o \ 667c478bd9Sstevel@tonic-gate toucholap.o \ 677c478bd9Sstevel@tonic-gate touchwin.o \ 687c478bd9Sstevel@tonic-gate tstp.o \ 697c478bd9Sstevel@tonic-gate unctrl.o 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate# include library definitions 727c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gateROOTLIBDIR= $(ROOT)/usr/ucblib 757c478bd9Sstevel@tonic-gateROOTLIBDIR64= $(ROOT)/usr/ucblib/$(MACH64) 767c478bd9Sstevel@tonic-gate 775bbb4db2SGarrett D'AmoreLIBS = $(DYNLIB) 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 807c478bd9Sstevel@tonic-gateCFLAGS64 += $(CCVERBOSE) 8124da5b34SrieDYNFLAGS += $(ZINTERPOSE) 82f808c858SrafDYNFLAGS32 = -R/usr/ucblib 83f808c858SrafDYNFLAGS64 = -R/usr/ucblib/$(MACH64) 847c478bd9Sstevel@tonic-gateLDLIBS += -ltermcap -lucb -lc 857c478bd9Sstevel@tonic-gate 865bbb4db2SGarrett D'AmoreCPPFLAGS = -I$(SRC)/ucbhead -I../../../lib/libc/inc $(CPPFLAGS.master) 877c478bd9Sstevel@tonic-gate 88*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 89*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 90*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 91*7014882cSRichard Lowe 927c478bd9Sstevel@tonic-gate.KEEP_STATE: 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gateall: $(LIBS) 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gatelint: lintcheck 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate# 997c478bd9Sstevel@tonic-gate# Include library targets 1007c478bd9Sstevel@tonic-gate# 1017c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gateobjs/%.o pics/%.o: ../%.c 1047c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1057c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 106