xref: /illumos-gate/usr/src/lib/libeti/menu/Makefile.com (revision e214b19eaa16fec1fa60a97227778103f598336f)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26LIBRARY=	libmenu.a
27VERS=		.1
28
29OBJECTS=  \
30	affect.o \
31	chk.o \
32	connect.o \
33	curitem.o \
34	driver.o \
35	global.o \
36	itemcount.o \
37	itemopts.o \
38	itemusrptr.o \
39	itemvalue.o \
40	link.o \
41	menuback.o \
42	menucursor.o \
43	menufore.o \
44	menuformat.o \
45	menugrey.o \
46	menuitems.o \
47	menumark.o \
48	menuopts.o \
49	menupad.o \
50	menuserptr.o \
51	menusub.o \
52	menuwin.o \
53	newitem.o \
54	newmenu.o \
55	pattern.o \
56	post.o \
57	scale.o \
58	show.o \
59	terminit.o \
60	topitem.o \
61	visible.o
62
63# include library definitions
64include ../../../Makefile.lib
65
66LIBS =          $(DYNLIB)
67
68SRCDIR=		../common
69
70CPPFLAGS +=	-I../inc
71CFLAGS +=       $(CCVERBOSE)
72LDLIBS +=       -lcurses -lc
73
74CERRWARN +=	-_gcc=-Wno-parentheses
75
76COMPATLINKS=	usr/ccs/lib/libmenu.so
77COMPATLINKS64=	usr/ccs/lib/$(MACH64)/libmenu.so
78
79$(ROOT)/usr/ccs/lib/libmenu.so := COMPATLINKTARGET= ../../lib/libmenu.so.1
80$(ROOT)/usr/ccs/lib/$(MACH64)/libmenu.so:= \
81	COMPATLINKTARGET=../../../lib/$(MACH64)/libmenu.so.1
82
83.KEEP_STATE:
84
85all: $(LIBS)
86
87
88# include library targets
89include ../../../Makefile.targ
90
91pics/%.o:	../common/%.c
92	$(COMPILE.c) -o $@ $<
93	$(POST_PROCESS_O)
94