8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / lp / model / netpr / Makefile
blobf447336bc30b4d4ead75b2f2459281c81ddf62ea
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
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # cmd/lp/model/netpr
27 PROG= netpr
29 include ../../Makefile.lp
31 PURIFYOPTS = -logfile=/tmp/errs.%p
32 PURIFY = purify $(PURIFYOPTS)
34 CPPFLAGS = -I. -I$(LPINC) \
35 $(CPPFLAGS.master)
37 HDRS= \
38 netpr.h \
39 netdebug.h
41 SRCS= \
42 netpr.c \
43 misc.c \
44 net.c \
45 tcp_misc.c \
46 bsd_misc.c
48 OBJS= $(SRCS:.c=.o)
51 LPLIBS = \
52 $(LIBMSG) \
53 $(LIBFRM) \
54 $(LIBREQ) \
55 $(LIBPRT) \
56 $(LIBCLS) \
57 $(LIBACC) \
58 $(LIBFLT) \
59 $(LIBUSR) \
60 $(LIBOAM) \
61 $(LIBLP) \
62 $(LIBSEC) \
63 $(LIBSYS)
65 SYSLIBS= -lnsl -lsocket
67 LDLIBS += $(LPLIBS) $(SYSLIBS)
68 ROOTLIBLPBIN = $(ROOTLIBLP)/bin
70 ROOTNETPRPROG = $(PROG:%=$(ROOTLIBLPBIN)/%)
72 FILEMODE= 04511
74 POFILE= lp_model_netpr.po
76 .KEEP_STATE:
78 all: $(PROG)
80 install: all $(ROOTLIBLPBIN) $(ROOTNETPRPROG)
82 $(ROOTLIBLPBIN):
83 $(INS.dir)
85 $(ROOTLIBLPBIN)/%: %
86 $(INS.file)
89 $(PROG): $(OBJS)
90 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
91 $(POST_PROCESS)
93 $(PROG).pure: $(OBJS)
94 $(PURIFY) $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
95 $(POST_PROCESS)
97 clean:
98 $(RM) $(OBJS)
100 clobber: clean
101 -$(RM) $(PROG) $(CLOBBERFILES)
103 strip:
104 $(STRIP) $(PROG)
106 cstyle:
107 cstyle $(SRCS)
109 LINTFLAGS += -lnsl -lsocket
110 lint:
111 $(LINT.c) $(SRCS) $(LDLIBS)
113 include ../Makefile.msg