17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*c1ecd8b9Sjacobs# Common Development and Distribution License (the "License"). 6*c1ecd8b9Sjacobs# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 237c478bd9Sstevel@tonic-gate# 24*c1ecd8b9Sjacobs# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 257c478bd9Sstevel@tonic-gate# Use is subject to license terms. 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# cmd/lp/model/netpr 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gatePROG= netpr 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateinclude ../../Makefile.lp 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gatePURIFYOPTS = -logfile=/tmp/errs.%p 357c478bd9Sstevel@tonic-gatePURIFY = purify $(PURIFYOPTS) 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateCPPFLAGS = -I. -I$(LPINC) \ 387c478bd9Sstevel@tonic-gate $(CPPFLAGS.master) 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateHDRS= \ 417c478bd9Sstevel@tonic-gate netpr.h \ 427c478bd9Sstevel@tonic-gate netdebug.h 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateSRCS= \ 457c478bd9Sstevel@tonic-gate netpr.c \ 467c478bd9Sstevel@tonic-gate misc.c \ 477c478bd9Sstevel@tonic-gate net.c \ 487c478bd9Sstevel@tonic-gate tcp_misc.c \ 497c478bd9Sstevel@tonic-gate bsd_misc.c 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateOBJS= $(SRCS:.c=.o) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateLPLIBS = \ 557c478bd9Sstevel@tonic-gate $(LIBMSG) \ 567c478bd9Sstevel@tonic-gate $(LIBFRM) \ 577c478bd9Sstevel@tonic-gate $(LIBREQ) \ 587c478bd9Sstevel@tonic-gate $(LIBPRT) \ 597c478bd9Sstevel@tonic-gate $(LIBCLS) \ 607c478bd9Sstevel@tonic-gate $(LIBACC) \ 617c478bd9Sstevel@tonic-gate $(LIBFLT) \ 627c478bd9Sstevel@tonic-gate $(LIBUSR) \ 637c478bd9Sstevel@tonic-gate $(LIBOAM) \ 647c478bd9Sstevel@tonic-gate $(LIBLP) \ 657c478bd9Sstevel@tonic-gate $(LIBSEC) \ 66*c1ecd8b9Sjacobs $(LIBSYS) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateSYSLIBS= -lnsl -lsocket 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateLDLIBS += $(LPLIBS) $(SYSLIBS) 717c478bd9Sstevel@tonic-gateROOTLIBLPBIN = $(ROOTLIBLP)/bin 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateROOTNETPRPROG = $(PROG:%=$(ROOTLIBLPBIN)/%) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gateFILEMODE= 04511 767c478bd9Sstevel@tonic-gateOWNER= root 777c478bd9Sstevel@tonic-gateGROUP= bin 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gatePOFILE= lp_model_netpr.po 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate.KEEP_STATE: 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gateall: $(PROG) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateinstall: all $(ROOTLIBLPBIN) $(ROOTNETPRPROG) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate$(ROOTLIBLPBIN): 887c478bd9Sstevel@tonic-gate $(INS.dir) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate$(ROOTLIBLPBIN)/%: % 917c478bd9Sstevel@tonic-gate $(INS.file) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 957c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 967c478bd9Sstevel@tonic-gate $(POST_PROCESS) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate$(PROG).pure: $(OBJS) 997c478bd9Sstevel@tonic-gate $(PURIFY) $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 1007c478bd9Sstevel@tonic-gate $(POST_PROCESS) 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gateclean: 1037c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gateclobber: clean 1067c478bd9Sstevel@tonic-gate -$(RM) $(PROG) $(CLOBBERFILES) 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gatestrip: 1097c478bd9Sstevel@tonic-gate $(STRIP) $(PROG) 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gatecstyle: 1127c478bd9Sstevel@tonic-gate cstyle $(SRCS) 1137c478bd9Sstevel@tonic-gate 114*c1ecd8b9SjacobsLINTFLAGS += -lnsl -lsocket 1157c478bd9Sstevel@tonic-gatelint: 1167c478bd9Sstevel@tonic-gate $(LINT.c) $(SRCS) $(LDLIBS) 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gateinclude ../Makefile.msg 119