xref: /titanic_52/usr/src/lib/libeti/menu/Makefile.com (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libeti/menu/Makefile.com
29#
30
31LIBRARY=	libmenu.a
32VERS=		.1
33
34OBJECTS=  \
35	affect.o \
36	chk.o \
37	connect.o \
38	curitem.o \
39	driver.o \
40	global.o \
41	itemcount.o \
42	itemopts.o \
43	itemusrptr.o \
44	itemvalue.o \
45	link.o \
46	menuback.o \
47	menucursor.o \
48	menufore.o \
49	menuformat.o \
50	menugrey.o \
51	menuitems.o \
52	menumark.o \
53	menuopts.o \
54	menupad.o \
55	menuserptr.o \
56	menusub.o \
57	menuwin.o \
58	newitem.o \
59	newmenu.o \
60	pattern.o \
61	post.o \
62	scale.o \
63	show.o \
64	terminit.o \
65	topitem.o \
66	visible.o
67
68# include library definitions
69include ../../../Makefile.lib
70
71MAPFILE=        $(MAPDIR)/mapfile
72
73LIBS =          $(DYNLIB) $(LINTLIB)
74
75SRCDIR=		../common
76
77$(LINTLIB) :=	SRCS=$(SRCDIR)/$(LINTSRC)
78
79CPPFLAGS +=	-I../inc
80CFLAGS +=       $(CCVERBOSE)
81DYNFLAGS +=     -M $(MAPFILE)
82LDLIBS +=       -lcurses -lc
83
84.KEEP_STATE:
85
86all: $(LIBS) fnamecheck
87
88lint: lintcheck
89
90$(DYNLIB):      $(MAPFILE)
91
92$(MAPFILE):
93	@cd $(MAPDIR); $(MAKE) mapfile
94
95# include library targets
96include ../../../Makefile.targ
97
98pics/%.o:	../common/%.c
99	$(COMPILE.c) -o $@ $<
100	$(POST_PROCESS_O)
101