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.
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.
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]
22 # ident "%Z%%M% %I% %E% SMI"
24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
27 # cmd/lp/model/Makefile
30 include ..
/Makefile.lp
48 tsol_standard_foomatic \
49 tsol_netstandard_foomatic \
55 ROOTLIBLPMODEL
= $(ROOTLIBLP
)/model
56 ROOTLIBLPBIN
= $(ROOTLIBLP
)/bin
58 ROOTMISC
= $(MISC
:%=$(ROOTLIBLPBIN
)/%)
59 ROOTLPPROG
= $(PROG
:%=$(ROOTLIBLPBIN
)/%)
60 ROOTMODELS
= $(MODELS
:%=$(ROOTLIBLPMODEL
)/%)
62 CPPFLAGS
= -I
$(LPINC
) $(CPPFLAGS.master
)
64 # conditional assignments
65 lp.tell
:= LDLIBS
+= $(LIBMSG
) $(LIBLP
)
66 lp.set drain.output lp.cat
:= LDLIBS
+= $(LIBLP
) -lcurses
67 lp.tsol_separator
:= LDLIBS
+= -ltsol
69 $(ROOTMISC
) := FILEMODE
= 0444
72 POFILES
= $(SRCS
:%.c
=%.po
)
76 all: $(PROG
) $(MODELS
) $(MISC
) $(SUBDIRS
)
78 install: all .WAIT
$(ROOTLPPROG
) $(ROOTMODELS
) $(ROOTMISC
) \
81 $(ROOTLIBLPMODEL
)/% $(ROOTLIBLPBIN
)/%: %
84 catalog
: $(SUBDIRS
) $(POFILE
)
90 clobber: $(SUBDIRS
) clean
91 -$(RM
) $(PROG
) $(CLOBBERFILES
)
97 $(LINT.c
) $(SRCS
) $(LDLIBS
)
100 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
102 include ..
/Makefile.lp.msg