# # 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= .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 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 trace.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= \ base.o 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_cmdnam.o m_errorx.o m_ord.o m_strdup.o \ m_crcpos.o m_getenv.o m_pathca.o m_vsscan.o \ m_error.o m_malloc.o m_pathma.o # STDIO source files are in src/libc/stdio STDIO= \ vfscanf.o # WIDE source files are in src/libc/wide WIDE= \ m_mbstow.o m_wcsdup.o 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) LIBS = $(DYNLIB) # definitions for install target ROOTLIBDIR= $(ROOT)/usr/xpg4/lib ROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64) ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) $(LINTLIB):= SRCS=../src/libc/llib-lcurses $(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-function # not linted SMATCH=off 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: $(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)