xref: /onnv-gate/usr/src/cmd/lp/model/Makefile (revision 4746:0bc0c48f4304)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54271Srie# Common Development and Distribution License (the "License").
64271Srie# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
220Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
230Sstevel@tonic-gate#
244271Srie# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate# Use is subject to license terms.
260Sstevel@tonic-gate#
270Sstevel@tonic-gate# cmd/lp/model/Makefile
280Sstevel@tonic-gate#
290Sstevel@tonic-gate
300Sstevel@tonic-gateinclude			../Makefile.lp
310Sstevel@tonic-gate
320Sstevel@tonic-gateSUBDIRS =		netpr
330Sstevel@tonic-gate
340Sstevel@tonic-gatePROG =			lp.set		\
350Sstevel@tonic-gate			lp.cat		\
360Sstevel@tonic-gate			lp.tell		\
37*4746Srica			lp.tsol_separator	\
380Sstevel@tonic-gate			drain.output
390Sstevel@tonic-gate
400Sstevel@tonic-gateSRCS =			$(PROG:%=%.c)
410Sstevel@tonic-gate
420Sstevel@tonic-gateOBJS =			$(PROG:%=%.o)
430Sstevel@tonic-gate
440Sstevel@tonic-gateMODELS =		standard	\
450Sstevel@tonic-gate			netstandard	\
46*4746Srica			tsol_standard	\
47*4746Srica			tsol_netstandard	\
48*4746Srica			tsol_standard_foomatic	\
49*4746Srica			tsol_netstandard_foomatic	\
500Sstevel@tonic-gate			uri
510Sstevel@tonic-gate
520Sstevel@tonic-gateMISC =			alert.proto
530Sstevel@tonic-gate
540Sstevel@tonic-gate
550Sstevel@tonic-gateROOTLIBLPMODEL=		$(ROOTLIBLP)/model
560Sstevel@tonic-gateROOTLIBLPBIN =		$(ROOTLIBLP)/bin
570Sstevel@tonic-gate
580Sstevel@tonic-gateROOTMISC =		$(MISC:%=$(ROOTLIBLPBIN)/%)
590Sstevel@tonic-gateROOTLPPROG =		$(PROG:%=$(ROOTLIBLPBIN)/%)
600Sstevel@tonic-gateROOTMODELS =		$(MODELS:%=$(ROOTLIBLPMODEL)/%)
610Sstevel@tonic-gate
620Sstevel@tonic-gateCPPFLAGS =		-I$(LPINC) $(CPPFLAGS.master)
630Sstevel@tonic-gate
640Sstevel@tonic-gate# conditional assignments
650Sstevel@tonic-gatelp.tell :=			LDLIBS += $(LIBMSG) $(LIBLP)
664271Srielp.set drain.output lp.cat :=	LDLIBS += $(LIBLP) -lcurses
67*4746Sricalp.tsol_separator :=		LDLIBS += -ltsol
680Sstevel@tonic-gate
690Sstevel@tonic-gate$(ROOTMISC) :=		FILEMODE = 0444
700Sstevel@tonic-gate
710Sstevel@tonic-gatePOFILE=			lp_model.po
720Sstevel@tonic-gatePOFILES=		$(SRCS:%.c=%.po)
730Sstevel@tonic-gate
740Sstevel@tonic-gate.KEEP_STATE:
750Sstevel@tonic-gate
760Sstevel@tonic-gateall:			$(PROG) $(MODELS) $(MISC) $(SUBDIRS)
770Sstevel@tonic-gate
780Sstevel@tonic-gateinstall:		all .WAIT $(ROOTLPPROG) $(ROOTMODELS) $(ROOTMISC) \
790Sstevel@tonic-gate			$(SUBDIRS)
800Sstevel@tonic-gate
810Sstevel@tonic-gate$(ROOTLIBLPMODEL)/% $(ROOTLIBLPBIN)/%:	%
820Sstevel@tonic-gate			$(INS.file)
830Sstevel@tonic-gate
840Sstevel@tonic-gatecatalog:		$(SUBDIRS) $(POFILE)
850Sstevel@tonic-gate			$(CP) $(POFILE) ..
860Sstevel@tonic-gate
870Sstevel@tonic-gateclean:			$(SUBDIRS)
880Sstevel@tonic-gate			$(RM) $(OBJS)
890Sstevel@tonic-gate
900Sstevel@tonic-gateclobber:		$(SUBDIRS) clean
910Sstevel@tonic-gate			-$(RM) $(PROG) $(CLOBBERFILES)
920Sstevel@tonic-gate
930Sstevel@tonic-gatestrip:
940Sstevel@tonic-gate			$(STRIP) $(PROG)
950Sstevel@tonic-gate
960Sstevel@tonic-gatelint:
970Sstevel@tonic-gate			$(LINT.c) $(SRCS) $(LDLIBS)
980Sstevel@tonic-gate
990Sstevel@tonic-gate$(SUBDIRS) :	FRC
1000Sstevel@tonic-gate		@cd $@; pwd; $(MAKE) $(TARGET)
1010Sstevel@tonic-gate
1020Sstevel@tonic-gateinclude		../Makefile.lp.msg
1030Sstevel@tonic-gate
1040Sstevel@tonic-gateFRC:
105