Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# The contents of this file are subject to the terms of the
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# Common Development and Distribution License (the "License").
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# You may not use this file except in compliance with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# or http://www.opensolaris.org/os/licensing.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# See the License for the specific language governing permissions
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# and limitations under the License.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews#
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# If applicable, add the following below this CDDL HEADER, with the
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
d3cbd6b05c16c6e0e86c1651bda3b3ee06574d62Mark Andrews#
26440aaebba1acb5c8810f7faa26ad3b7553762eMark Andrews#
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# Use is subject to license terms.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsPROG = acctadm
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsMANIFEST = extended-accounting.xml
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsOBJS = main.o aconf.o res.o utils.o
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsSRCS = $(OBJS:.o=.c)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsPOFILES = $(OBJS:.o=.po)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrewsinclude ../Makefile.cmd
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsCFLAGS += $(CCVERBOSE)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsCERRWARN += -_gcc=-Wno-uninitialized
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsCERRWARN += -_gcc=-Wno-parentheses
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLDLIBS += -lexacct -lscf -lsecdb -ldladm
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsPOFILE = acctadm.po
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsXGETFLAGS = -a -x acctadm.xcl
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsFILEMODE = 0555
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews.KEEP_STATE:
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrewsall: $(PROG)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews$(PROG): $(OBJS)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews $(POST_PROCESS)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrewsinstall: all $(ROOTUSRSBINPROG) $(ROOTMANIFEST)
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeincheck: $(CHKMANIFEST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(POFILE): $(POFILES)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CAT) $(POFILES) > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $(OBJS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlint: lint_SRCS
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein