#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
#
LIBRARY= libcurses.a
VERS= .1
# objects are grouped by source directory
# all of the libxcurses source files are in src/libc
OBJECTS= \
$(XCURSES) $(GEN) $(I18N) $(MKS) \
$(STDIO) $(WIDE)
# XCURSES source files are in src/libc/xcurses
XCURSES= \
add_wch.o dupwin.o longname.o strname.o wbrdr.o \
addch.o echo_wch.o m_cc.o termattr.o wbrdr_st.o \
addchn.o echochar.o meta.o tgetent.o wchgat.o \
addnstr.o endwin.o move.o tgetflag.o wclear.o \
addnws.o flushinp.o mvcur.o tgetnum.o wclrbot.o \
addwchn.o get_wch.o mvwin.o tgetstr.o wclreol.o \
attr_on.o getcchar.o napms.o tgoto.o wdelch.o \
attron.o getch.o newpad.o tigetfla.o wget_wch.o \
baudrate.o getn_ws.o newterm.o tigetnum.o wgetch.o \
beep.o getnstr.o newwin.o tigetstr.o wgetn_ws.o \
bkgd.o getwin.o noecho.o timeout.o whln.o \
bkgdset.o has.o nonl.o touched.o whln_st.o \
bkgrnd.o hln.o numcode.o touchwin.o win_wch.o \
bkgrndst.o hln_st.o tparm.o win_wchn.o \
boolcode.o in_wch.o numname.o tputs.o winch.o \
in_wchn.o overlay.o winchn.o \
boolname.o inch.o pecho_wc.o unctrl.o winnstr.o \
box.o inchn.o pechoch.o vid_attr.o winnwstr.o \
box_set.o initscr.o prefresh.o vid_puts.o wins_nws.o \
brdr.o innstr.o printw.o vidattr.o wins_wch.o \
brdr_st.o innwstr.o ptrmove.o vw_print.o winsch.o \
cbreak.o ins_nws.o qiflush.o vw_scanw.o winsdel.o \
chgat.o ins_wch.o redraw.o vwprintw.o winsnstr.o \
clear.o insch.o refresh.o vwscanw.o wmove.o \
clearok.o insnstr.o savetty.o wacs.o wredraw.o \
clrbot.o intrflsh.o scanw.o wadd_wch.o wrefresh.o \
clreol.o scr_dump.o waddch.o wscrl.o \
color.o isendwin.o scrl.o waddchn.o wscrreg.o \
copywin.o key_name.o scrreg.o waddnstr.o wsyncdn.o \
curs_set.o keyindex.o setcchar.o waddnws.o wsyncup.o \
delay.o keyname.o setup.o waddwchn.o wtimeout.o \
delch.o keypad.o slk.o wattr_on.o wtouchln.o \
deleteln.o killchar.o strcode.o wattron.o wunctrl.o \
doupdate.o killwch.o strfnam.o wbkgrnd.o
# GEN source files are in src/libc/gen
GEN= \
eprintf.o
# I18N source files are in src/libc/i18n
I18N= \
m_strmsg.o m_text.o
# MKS source files are in src/libc/mks
MKS= \
m_errorx.o m_strdup.o \
m_crcpos.o m_getenv.o m_vsscan.o \
m_error.o m_malloc.o
# STDIO source files are in src/libc/stdio
STDIO= \
vfscanf.o
# WIDE source files are in src/libc/wide
WIDE= \
wio_get.o wio_put.o
# include library definitions
include ../../Makefile.lib
SRCDIR = ../src
SRCS= $(XCURSES:%.o=../src/libc/xcurses/%.c) \
$(GEN:%.o=../src/libc/gen/%.c) \
$(I18N:%.o=../src/libc/i18n/%.c) \
$(MKS:%.o=../src/libc/mks/%.c) \
$(STDIO:%.o=../src/libc/stdio/%.c) \
$(WIDE:%.o=../src/libc/wide/%.c)
# The following objects are unused. Refer to comments in Makefile.master.
UNUSEDXCURSESOBJS = trace.o
UNUSEDGENOBJS = base.o
UNUSEDMKSOBJS = m_cmdnam.o m_ord.o m_pathca.o m_pathma.o
UNUSEDWIDEOBJS = m_mbstow.o m_wcsdup.o
UNUSEDFILES = $(UNUSEDXCURSESOBJS:%.o=../src/libc/xcurses/%.c) \
$(UNUSEDGENOBJS:%.o=../src/libc/gen/%.c) \
$(UNUSEDMKSOBJS:%.o=../src/libc/mks/%.c) \
$(UNUSEDWIDEOBJS:%.o=../src/libc/wide/%.c)
POST_PROCESS_SO += $(ACCESS_UNUSEDFILES)
LIBS = $(DYNLIB)
# definitions for install target
INSTALL_LIBDIR= usr/xpg4/lib
$(LINTLIB):= SRCS=../src/libc/llib-lcurses
$(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED
LINTSRC= $(LINTLIB:%.ln=%)
LDLIBS += -lc
CPPFLAGS = -I../h -I../h/solaris2 -I../src/libc/xcurses $(CPPFLAGS.master)
#
# If and when somebody gets around to messaging this, CLOBBERFILE should not
# be cleared (so that any .po file will be clobbered.
#
CLOBBERFILES= libcurses.so libcurses.so$(VERS)
.KEEP_STATE:
all: stub $(LIBS)
lint: lintcheck
#
# Include library targets
#
include ../../Makefile.targ
objs/%.o pics/%.o: ../src/libc/xcurses/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/gen/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/i18n/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/mks/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/narrow/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/stdio/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/wide/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)