source: trunk/third/samba/pcp/Makefile @ 20377

Revision 20377, 1.9 KB checked in by zacheiss, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20376, which included commits to RCS files with non-trunk default branches.
Line 
1#!make
2#
3# Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
4#
5# This program is free software; you can redistribute it and/or modify it
6# under the terms of version 2 of the GNU General Public License as
7# published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it would be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12#
13# Further, this software is distributed without any warranty that it is
14# free of the rightful claim of any third person regarding infringement
15# or the like.  Any license provided herein, whether implied or
16# otherwise, applies only to this software file.  Patent licenses, if
17# any, provided herein do not apply to combinations of this program with
18# other software, or any other product whatsoever.
19#
20# You should have received a copy of the GNU General Public License along
21# with this program; if not, write the Free Software Foundation, Inc., 59
22# Temple Place - Suite 330, Boston MA 02111-1307, USA.
23#
24# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25# Mountain View, CA  94043, or:
26#
27# http://www.sgi.com
28#
29# For further information regarding this notice, see:
30#
31# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32#
33
34SHELL   = sh
35
36include /etc/pcp.conf
37
38IAM     = samba
39CFILES  = $(IAM).c
40
41LIBTARGET = pmda_$(IAM).so
42CMDTARGET = pmda$(IAM)
43TARGETS = $(LIBTARGET) $(CMDTARGET)
44
45DEBUG   = -DDEBUG
46CFLAGS  = $(DEBUG)
47LDOPTS  =
48LDLIBS  = -lpcp_pmda -lpcp
49DSOOPTS = -shared
50LDIRT   = metrics.h so_locations *.log help.dir help.pag *.pmda_$(IAM).so
51
52INSTALL = install
53CC      = cc
54
55default: $(TARGETS)
56
57install:        default
58
59$(CMDTARGET):   profile.h metrics.h $(CFILES)
60        $(CC) $(CFLAGS) $(CFILES) $(LDOPTS) $(LDLIBS) -o $@
61
62$(LIBTARGET):   profile.h metrics.h $(CFILES)
63        $(CC) $(CFLAGS) $(DSOOPTS) $(LDOPTS) $(CFILES) $(LDLIBS) -o $@
64
65metrics.h:      profile.h mkheader.pl
66        ./mkheader.pl
67
68clobber clean:
69        rm -f $(LDIRT) $(TARGETS)
Note: See TracBrowser for help on using the repository browser.