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 5f841f6adSraf# Common Development and Distribution License (the "License"). 6f841f6adSraf# 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# 22*d75e6a5dStn143363# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate.KEEP_STATE: 297c478bd9Sstevel@tonic-gate.SUFFIXES: 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate# 327c478bd9Sstevel@tonic-gate# subdirs must define COMMON_DIR and include Makefile.com 337c478bd9Sstevel@tonic-gate# 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateSRCS = rcapd_main.c \ 367c478bd9Sstevel@tonic-gate rcapd_collection.c \ 377c478bd9Sstevel@tonic-gate rcapd_collection_project.c \ 380209230bSgjelinek rcapd_collection_zone.c \ 397c478bd9Sstevel@tonic-gate rcapd_mapping.c \ 407c478bd9Sstevel@tonic-gate rcapd_rfd.c \ 417c478bd9Sstevel@tonic-gate rcapd_scanner.c \ 427c478bd9Sstevel@tonic-gate rcapd_stat.c \ 437c478bd9Sstevel@tonic-gate utils.c 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateLINTSRCS = ../rcapd_main.c \ 467c478bd9Sstevel@tonic-gate ../rcapd_collection.c \ 477c478bd9Sstevel@tonic-gate ../rcapd_collection_project.c \ 480209230bSgjelinek ../rcapd_collection_zone.c \ 497c478bd9Sstevel@tonic-gate ../rcapd_mapping.c \ 507c478bd9Sstevel@tonic-gate ../rcapd_rfd.c \ 517c478bd9Sstevel@tonic-gate ../rcapd_scanner.c \ 527c478bd9Sstevel@tonic-gate $(COMMON_DIR)/rcapd_stat.c \ 537c478bd9Sstevel@tonic-gate $(COMMON_DIR)/utils.c 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 567c478bd9Sstevel@tonic-gateCPPFLAGS += -DDEBUG_MSG 577c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(COMMON_DIR) 58*d75e6a5dStn143363LDLIBS += -lkstat -lproc -lproject -lzonecfg -lumem -lscf 597c478bd9Sstevel@tonic-gateLDLIBS += $(EXTRA_LDLIBS) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateLINTFLAGS += -u 627c478bd9Sstevel@tonic-gateLINTFLAGS64 += -u 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gatePROG = rcapd 657c478bd9Sstevel@tonic-gateOBJS = $(SRCS:%.c=%.o) rcapd_conf.o 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gatePOFILES = $(OBJS:%.o=%.po) 687c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateCLOBBERFILES += $(POFILES) $(POFILE) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate.NO_PARALLEL: 737c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gateall: $(PROG) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 787c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 797c478bd9Sstevel@tonic-gate $(POST_PROCESS) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate%.o: ../%.c 827c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 837c478bd9Sstevel@tonic-gate%.po: ../%.c 847c478bd9Sstevel@tonic-gate $(COMPILE.cpp) $< > $<.i 857c478bd9Sstevel@tonic-gate $(BUILD.po) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateclean: 897c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 907c478bd9Sstevel@tonic-gate $(RM) rcapd_conf.c 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gatelint: 937c478bd9Sstevel@tonic-gate $(LINT.c) $(LINTSRCS) $(LDLIBS) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES) 967c478bd9Sstevel@tonic-gate $(RM) $@ 977c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gateROOTUSRLIBRCAP = $(ROOT)/usr/lib/rcap 1017c478bd9Sstevel@tonic-gateROOTUSRLIBRCAP32 = $(ROOTUSRLIBRCAP)/$(MACH32) 1027c478bd9Sstevel@tonic-gateROOTUSRLIBRCAP64 = $(ROOTUSRLIBRCAP)/$(MACH64) 1037c478bd9Sstevel@tonic-gateROOTUSRLIBRCAPPROG = $(ROOTUSRLIBRCAP)/$(PROG) 1047c478bd9Sstevel@tonic-gateROOTUSRLIBRCAPPROG32 = $(ROOTUSRLIBRCAP32)/$(PROG) 1057c478bd9Sstevel@tonic-gateROOTUSRLIBRCAPPROG64 = $(ROOTUSRLIBRCAP64)/$(PROG) 1067c478bd9Sstevel@tonic-gate$(ROOTUSRLIBRCAP)/%: $(ROOTUSRLIBRCAP) % 1077c478bd9Sstevel@tonic-gate $(INS.file) 1087c478bd9Sstevel@tonic-gate$(ROOTUSRLIBRCAP32)/%: $(ROOTUSRLIBRCAP32) % 1097c478bd9Sstevel@tonic-gate $(INS.file) 1107c478bd9Sstevel@tonic-gate$(ROOTUSRLIBRCAP64)/%: $(ROOTUSRLIBRCAP64) % 1117c478bd9Sstevel@tonic-gate $(INS.file) 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gateinclude ../../../Makefile.targ 114