8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / lp / model / Makefile
blob5da2ee653903d72c84e19ba27e50726d07852886
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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
32 SUBDIRS = netpr
34 PROG = lp.set \
35 lp.cat \
36 lp.tell \
37 lp.tsol_separator \
38 drain.output
40 SRCS = $(PROG:%=%.c)
42 OBJS = $(PROG:%=%.o)
44 MODELS = standard \
45 netstandard \
46 tsol_standard \
47 tsol_netstandard \
48 tsol_standard_foomatic \
49 tsol_netstandard_foomatic \
50 uri
52 MISC = alert.proto
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
71 POFILE= lp_model.po
72 POFILES= $(SRCS:%.c=%.po)
74 .KEEP_STATE:
76 all: $(PROG) $(MODELS) $(MISC) $(SUBDIRS)
78 install: all .WAIT $(ROOTLPPROG) $(ROOTMODELS) $(ROOTMISC) \
79 $(SUBDIRS)
81 $(ROOTLIBLPMODEL)/% $(ROOTLIBLPBIN)/%: %
82 $(INS.file)
84 catalog: $(SUBDIRS) $(POFILE)
85 $(CP) $(POFILE) ..
87 clean: $(SUBDIRS)
88 $(RM) $(OBJS)
90 clobber: $(SUBDIRS) clean
91 -$(RM) $(PROG) $(CLOBBERFILES)
93 strip:
94 $(STRIP) $(PROG)
96 lint:
97 $(LINT.c) $(SRCS) $(LDLIBS)
99 $(SUBDIRS) : FRC
100 @cd $@; pwd; $(MAKE) $(TARGET)
102 include ../Makefile.lp.msg
104 FRC: