xref: /illumos-gate/usr/src/lib/libeti/form/Makefile.com (revision 08855964b9970604433f7b19dcd71cf5af5e5f14)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26LIBRARY=	libform.a
27VERS=		.1
28
29OBJECTS=  \
30	chg_char.o \
31	chg_data.o \
32	chg_field.o \
33	chg_page.o \
34	driver.o \
35	field.o \
36	field_back.o \
37	field_buf.o \
38	field_fore.o \
39	field_init.o \
40	field_just.o \
41	field_opts.o \
42	field_pad.o \
43	field_stat.o \
44	field_term.o \
45	field_user.o \
46	fieldtype.o \
47	form.o \
48	form_init.o \
49	form_opts.o \
50	form_sub.o \
51	form_term.o \
52	form_user.o \
53	form_win.o \
54	post.o \
55	regcmp.o \
56	regex.o \
57	ty_alnum.o \
58	ty_alpha.o \
59	ty_enum.o \
60	ty_int.o \
61	ty_num.o \
62	ty_regexp.o \
63	utility.o
64
65# include library definitions
66include ../../../Makefile.lib
67
68LIBS =          $(DYNLIB)
69
70SRCDIR=		../common
71
72CPPFLAGS +=	-I../inc
73CFLAGS +=       $(CCVERBOSE)
74LDLIBS +=       -lcurses -lc
75
76CERRWARN +=	-_gcc=-Wno-parentheses
77CERRWARN +=	$(CNOWARN_UNINIT)
78CERRWARN +=	-_gcc=-Wno-char-subscripts
79
80COMPATLINKS=	usr/ccs/lib/libform.so
81COMPATLINKS64=	usr/ccs/lib/$(MACH64)/libform.so
82
83$(ROOT)/usr/ccs/lib/libform.so := COMPATLINKTARGET= ../../lib/libform.so.1
84$(ROOT)/usr/ccs/lib/$(MACH64)/libform.so := \
85	COMPATLINKTARGET= ../../../lib/$(MACH64)/libform.so.1
86
87.KEEP_STATE:
88
89all: $(LIBS)
90
91
92# include library targets
93include ../../../Makefile.targ
94
95pics/%.o:	../common/%.c
96	$(COMPILE.c) -o $@ $<
97	$(POST_PROCESS_O)
98