5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
26 LIBRARY= libcurses.a
27 VERS= .2
28
29 # objects are grouped by source directory
30 # all of the libxcurses source files are in src/libc
31 OBJECTS= $(XCURSES) $(MKS) $(WIDE)
32
33 # XCURSES source files are in src/libc/xcurses
34 XCURSES= \
35 add_wch.o dupwin.o longname.o strname.o wbrdr.o \
36 addch.o echo_wch.o m_cc.o termattr.o wbrdr_st.o \
37 addchn.o echochar.o meta.o tgetent.o wchgat.o \
38 addnstr.o endwin.o move.o tgetflag.o wclear.o \
39 addnws.o flushinp.o mvcur.o tgetnum.o wclrbot.o \
40 addwchn.o get_wch.o mvwin.o tgetstr.o wclreol.o \
41 attr_on.o getcchar.o napms.o tgoto.o wdelch.o \
42 attron.o getch.o newpad.o tigetfla.o wget_wch.o \
43 baudrate.o getn_ws.o newterm.o tigetnum.o wgetch.o \
44 beep.o getnstr.o newwin.o tigetstr.o wgetn_ws.o \
82 $(MKS:%.o=../src/libc/mks/%.c) \
83 $(WIDE:%.o=../src/libc/wide/%.c)
84
85 LIBS = $(DYNLIB) $(LINTLIB)
86
87 # definitions for install target
88 ROOTLIBDIR= $(ROOT)/usr/xpg4/lib
89 ROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64)
90 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%)
91
92 $(LINTLIB):= SRCS=../src/libc/llib-lcurses
93
94 LINTSRC= $(LINTLIB:%.ln=%)
95
96 LDLIBS += -lc
97
98 CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master)
99 CERRWARN += -_gcc=-Wno-uninitialized
100 CERRWARN += -_gcc=-Wno-unused-value
101
102 #
103 # If and when somebody gets around to messaging this, CLOBBERFILE should not
104 # be cleared (so that any .po file will be clobbered.
105 #
106 CLOBBERFILES= libcurses.so libcurses.so$(VERS)
107
108 .KEEP_STATE:
109
110 all: $(LIBS)
111
112 lint: lintcheck
113
114 #
115 # Include library targets
116 #
117 include ../../Makefile.targ
118
119 objs/%.o pics/%.o: ../src/libc/xcurses/%.c
120 $(COMPILE.c) -o $@ $<
121 $(POST_PROCESS_O)
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 LIBRARY= libcurses.a
28 VERS= .2
29
30 # objects are grouped by source directory
31 # all of the libxcurses source files are in src/libc
32 OBJECTS= $(XCURSES) $(MKS) $(WIDE)
33
34 # XCURSES source files are in src/libc/xcurses
35 XCURSES= \
36 add_wch.o dupwin.o longname.o strname.o wbrdr.o \
37 addch.o echo_wch.o m_cc.o termattr.o wbrdr_st.o \
38 addchn.o echochar.o meta.o tgetent.o wchgat.o \
39 addnstr.o endwin.o move.o tgetflag.o wclear.o \
40 addnws.o flushinp.o mvcur.o tgetnum.o wclrbot.o \
41 addwchn.o get_wch.o mvwin.o tgetstr.o wclreol.o \
42 attr_on.o getcchar.o napms.o tgoto.o wdelch.o \
43 attron.o getch.o newpad.o tigetfla.o wget_wch.o \
44 baudrate.o getn_ws.o newterm.o tigetnum.o wgetch.o \
45 beep.o getnstr.o newwin.o tigetstr.o wgetn_ws.o \
83 $(MKS:%.o=../src/libc/mks/%.c) \
84 $(WIDE:%.o=../src/libc/wide/%.c)
85
86 LIBS = $(DYNLIB) $(LINTLIB)
87
88 # definitions for install target
89 ROOTLIBDIR= $(ROOT)/usr/xpg4/lib
90 ROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64)
91 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%)
92
93 $(LINTLIB):= SRCS=../src/libc/llib-lcurses
94
95 LINTSRC= $(LINTLIB:%.ln=%)
96
97 LDLIBS += -lc
98
99 CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master)
100 CERRWARN += -_gcc=-Wno-uninitialized
101 CERRWARN += -_gcc=-Wno-unused-value
102
103 # not linted
104 SMATCH=off
105
106 #
107 # If and when somebody gets around to messaging this, CLOBBERFILE should not
108 # be cleared (so that any .po file will be clobbered.
109 #
110 CLOBBERFILES= libcurses.so libcurses.so$(VERS)
111
112 .KEEP_STATE:
113
114 all: $(LIBS)
115
116 lint: lintcheck
117
118 #
119 # Include library targets
120 #
121 include ../../Makefile.targ
122
123 objs/%.o pics/%.o: ../src/libc/xcurses/%.c
124 $(COMPILE.c) -o $@ $<
125 $(POST_PROCESS_O)
|