xref: /titanic_51/usr/src/lib/libpp/Makefile.com (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1*da2e3ebdSchin#
2*da2e3ebdSchin# CDDL HEADER START
3*da2e3ebdSchin#
4*da2e3ebdSchin# The contents of this file are subject to the terms of the
5*da2e3ebdSchin# Common Development and Distribution License (the "License").
6*da2e3ebdSchin# You may not use this file except in compliance with the License.
7*da2e3ebdSchin#
8*da2e3ebdSchin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*da2e3ebdSchin# or http://www.opensolaris.org/os/licensing.
10*da2e3ebdSchin# See the License for the specific language governing permissions
11*da2e3ebdSchin# and limitations under the License.
12*da2e3ebdSchin#
13*da2e3ebdSchin# When distributing Covered Code, include this CDDL HEADER in each
14*da2e3ebdSchin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*da2e3ebdSchin# If applicable, add the following below this CDDL HEADER, with the
16*da2e3ebdSchin# fields enclosed by brackets "[]" replaced with your own identifying
17*da2e3ebdSchin# information: Portions Copyright [yyyy] [name of copyright owner]
18*da2e3ebdSchin#
19*da2e3ebdSchin# CDDL HEADER END
20*da2e3ebdSchin#
21*da2e3ebdSchin#
22*da2e3ebdSchin# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*da2e3ebdSchin# Use is subject to license terms.
24*da2e3ebdSchin#
25*da2e3ebdSchin# ident	"%Z%%M%	%I%	%E% SMI"
26*da2e3ebdSchin#
27*da2e3ebdSchin
28*da2e3ebdSchinSHELL=/usr/bin/ksh
29*da2e3ebdSchin
30*da2e3ebdSchinLIBRARY=	libpp.a
31*da2e3ebdSchinVERS=		.1
32*da2e3ebdSchin
33*da2e3ebdSchinOBJECTS= \
34*da2e3ebdSchin	ppargs.o \
35*da2e3ebdSchin	ppbuiltin.o \
36*da2e3ebdSchin	ppcall.o \
37*da2e3ebdSchin	ppcomment.o \
38*da2e3ebdSchin	ppcontext.o \
39*da2e3ebdSchin	ppcontrol.o \
40*da2e3ebdSchin	ppcpp.o \
41*da2e3ebdSchin	ppdata.o \
42*da2e3ebdSchin	pperror.o \
43*da2e3ebdSchin	ppexpr.o \
44*da2e3ebdSchin	ppfsm.o \
45*da2e3ebdSchin	ppincref.o \
46*da2e3ebdSchin	ppinput.o \
47*da2e3ebdSchin	ppkey.o \
48*da2e3ebdSchin	pplex.o \
49*da2e3ebdSchin	ppline.o \
50*da2e3ebdSchin	ppmacref.o \
51*da2e3ebdSchin	ppmisc.o \
52*da2e3ebdSchin	ppop.o \
53*da2e3ebdSchin	pppragma.o \
54*da2e3ebdSchin	ppprintf.o \
55*da2e3ebdSchin	ppproto.o \
56*da2e3ebdSchin	ppsearch.o \
57*da2e3ebdSchin	pptrace.o
58*da2e3ebdSchin
59*da2e3ebdSchininclude ../../Makefile.astmsg
60*da2e3ebdSchin
61*da2e3ebdSchininclude ../../Makefile.lib
62*da2e3ebdSchin
63*da2e3ebdSchin# mapfile-vers does not live with the sources in in common/ to make
64*da2e3ebdSchin# automated code updates easier.
65*da2e3ebdSchinMAPFILES=       ../mapfile-vers
66*da2e3ebdSchin
67*da2e3ebdSchin# Set common AST build flags (e.g., needed to support the math stuff).
68*da2e3ebdSchininclude ../../../Makefile.ast
69*da2e3ebdSchin
70*da2e3ebdSchinLIBS =		$(DYNLIB) $(LINTLIB)
71*da2e3ebdSchinLDLIBS +=	-last -lc
72*da2e3ebdSchin$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
73*da2e3ebdSchin
74*da2e3ebdSchinSRCDIR =	../common
75*da2e3ebdSchin
76*da2e3ebdSchin# We use "=" here since using $(CPPFLAGS.master) is very tricky in our
77*da2e3ebdSchin# case - it MUST come as the last element but future changes in -D options
78*da2e3ebdSchin# may then cause silent breakage in the AST sources because the last -D
79*da2e3ebdSchin# option specified overrides previous -D options so we prefer the current
80*da2e3ebdSchin# way to explicitly list each single flag.
81*da2e3ebdSchinCPPFLAGS = \
82*da2e3ebdSchin	$(DTEXTDOM) $(DTS_ERRNO) \
83*da2e3ebdSchin	-I. \
84*da2e3ebdSchin	-I$(ROOT)/usr/include/ast \
85*da2e3ebdSchin	-D_PACKAGE_ast \
86*da2e3ebdSchin	'-DUSAGE_LICENSE=\
87*da2e3ebdSchin		"[-author?Glenn Fowler <gsf@research.att.com>]"\
88*da2e3ebdSchin		"[-copyright?Copyright (c) 1986-2007 AT&T Knowledge Ventures]"\
89*da2e3ebdSchin		"[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
90*da2e3ebdSchin		"[--catalog?libpp]"'
91*da2e3ebdSchin
92*da2e3ebdSchinCFLAGS += \
93*da2e3ebdSchin	$(CCVERBOSE) \
94*da2e3ebdSchin	-xstrconst
95*da2e3ebdSchinCFLAGS64 += \
96*da2e3ebdSchin	$(CCVERBOSE) \
97*da2e3ebdSchin	-xstrconst
98*da2e3ebdSchin
99*da2e3ebdSchinpics/ppcall.o 		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
100*da2e3ebdSchinpics/ppcontrol.o 	:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
101*da2e3ebdSchinpics/ppcpp.o		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
102*da2e3ebdSchinpics/pplex.o		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
103*da2e3ebdSchinpics/ppexpr.o		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
104*da2e3ebdSchinpics/ppop.o 		:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
105*da2e3ebdSchinpics/ppsearch.o 	:= CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
106*da2e3ebdSchinpics/ppsearch.o 	:= CERRWARN += -_gcc=-Wno-sequence-point
107*da2e3ebdSchin
108*da2e3ebdSchin.KEEP_STATE:
109*da2e3ebdSchin
110*da2e3ebdSchinall: $(LIBS)
111*da2e3ebdSchin
112*da2e3ebdSchin#
113*da2e3ebdSchin# libpp is not lint-clean yet; fake up a target.  (You can use
114*da2e3ebdSchin# "make lintcheck" to actually run lint; please send all lint fixes
115*da2e3ebdSchin# upstream (to AT&T) so the next update will pull them into ON.)
116*da2e3ebdSchin#
117*da2e3ebdSchinlint:
118*da2e3ebdSchin	@ print "usr/src/lib/libpp is not lint-clean: skipping"
119*da2e3ebdSchin	@ $(TRUE)
120*da2e3ebdSchin
121*da2e3ebdSchininclude ../../Makefile.targ
122