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 5c1ecd8b9Sjacobs# Common Development and Distribution License (the "License"). 6c1ecd8b9Sjacobs# 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# 21*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 227c478bd9Sstevel@tonic-gate# Use is subject to license terms. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate# cmd/lp/model/netpr 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatePROG= netpr 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateinclude ../../Makefile.lp 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gatePURIFYOPTS = -logfile=/tmp/errs.%p 327c478bd9Sstevel@tonic-gatePURIFY = purify $(PURIFYOPTS) 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateCPPFLAGS = -I. -I$(LPINC) \ 357c478bd9Sstevel@tonic-gate $(CPPFLAGS.master) 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateHDRS= \ 387c478bd9Sstevel@tonic-gate netpr.h \ 397c478bd9Sstevel@tonic-gate netdebug.h 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateSRCS= \ 427c478bd9Sstevel@tonic-gate netpr.c \ 437c478bd9Sstevel@tonic-gate misc.c \ 447c478bd9Sstevel@tonic-gate net.c \ 457c478bd9Sstevel@tonic-gate tcp_misc.c \ 467c478bd9Sstevel@tonic-gate bsd_misc.c 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateOBJS= $(SRCS:.c=.o) 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateLPLIBS = \ 527c478bd9Sstevel@tonic-gate $(LIBMSG) \ 537c478bd9Sstevel@tonic-gate $(LIBFRM) \ 547c478bd9Sstevel@tonic-gate $(LIBREQ) \ 557c478bd9Sstevel@tonic-gate $(LIBPRT) \ 567c478bd9Sstevel@tonic-gate $(LIBCLS) \ 577c478bd9Sstevel@tonic-gate $(LIBACC) \ 587c478bd9Sstevel@tonic-gate $(LIBFLT) \ 597c478bd9Sstevel@tonic-gate $(LIBUSR) \ 607c478bd9Sstevel@tonic-gate $(LIBOAM) \ 617c478bd9Sstevel@tonic-gate $(LIBLP) \ 627c478bd9Sstevel@tonic-gate $(LIBSEC) \ 63c1ecd8b9Sjacobs $(LIBSYS) 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateSYSLIBS= -lnsl -lsocket 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateLDLIBS += $(LPLIBS) $(SYSLIBS) 687c478bd9Sstevel@tonic-gateROOTLIBLPBIN = $(ROOTLIBLP)/bin 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateROOTNETPRPROG = $(PROG:%=$(ROOTLIBLPBIN)/%) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gateFILEMODE= 04511 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gatePOFILE= lp_model_netpr.po 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate.KEEP_STATE: 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateall: $(PROG) 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gateinstall: all $(ROOTLIBLPBIN) $(ROOTNETPRPROG) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate$(ROOTLIBLPBIN): 837c478bd9Sstevel@tonic-gate $(INS.dir) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gate$(ROOTLIBLPBIN)/%: % 867c478bd9Sstevel@tonic-gate $(INS.file) 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 907c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 917c478bd9Sstevel@tonic-gate $(POST_PROCESS) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate$(PROG).pure: $(OBJS) 947c478bd9Sstevel@tonic-gate $(PURIFY) $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 957c478bd9Sstevel@tonic-gate $(POST_PROCESS) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gateclean: 987c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gateclobber: clean 1017c478bd9Sstevel@tonic-gate -$(RM) $(PROG) $(CLOBBERFILES) 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gatestrip: 1047c478bd9Sstevel@tonic-gate $(STRIP) $(PROG) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gatecstyle: 1077c478bd9Sstevel@tonic-gate cstyle $(SRCS) 1087c478bd9Sstevel@tonic-gate 109c1ecd8b9SjacobsLINTFLAGS += -lnsl -lsocket 1107c478bd9Sstevel@tonic-gatelint: 1117c478bd9Sstevel@tonic-gate $(LINT.c) $(SRCS) $(LDLIBS) 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gateinclude ../Makefile.msg 114