blob: 2d5497c37de080273aa13a3b828afb72299bdda5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
#
# 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 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright (c) 2018, Joyent, Inc.
LIBRARY= libcurses.a
VERS= .2
# objects are grouped by source directory
# all of the libxcurses source files are in src/libc
OBJECTS= $(XCURSES) $(MKS) $(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 numfnam.o tparm.o win_wchn.o \
boolcode.o in_wch.o numname.o tputs.o winch.o \
boolfnam.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
# MKS source files are in src/libc/mks
MKS= m_crcpos.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) \
$(MKS:%.o=../src/libc/mks/%.c) \
$(WIDE:%.o=../src/libc/wide/%.c)
LIBS = $(DYNLIB)
# definitions for install target
ROOTLIBDIR= $(ROOT)/usr/xpg4/lib
ROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64)
ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%)
LDLIBS += -lc
CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master)
CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-unused-value
# not linted
SMATCH=off
#
# 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: $(LIBS)
#
# 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/mks/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
objs/%.o pics/%.o: ../src/libc/wide/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
|