r6311: setting version to 3.0.15pre2
[Samba/gbeck.git] / pcp / Makefile
blobe4b5fb75064073c448a7e58937837893fd3c4957
1 #!make
3 # Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
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.
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.
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.
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.
24 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25 # Mountain View, CA 94043, or:
27 # http://www.sgi.com
29 # For further information regarding this notice, see:
31 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
34 SHELL = sh
36 include /etc/pcp.conf
38 IAM = samba
39 CFILES = $(IAM).c
41 LIBTARGET = pmda_$(IAM).so
42 CMDTARGET = pmda$(IAM)
43 TARGETS = $(LIBTARGET) $(CMDTARGET)
45 DEBUG = -DDEBUG
46 CFLAGS = $(DEBUG)
47 LDOPTS =
48 LDLIBS = -lpcp_pmda -lpcp
49 DSOOPTS = -shared
50 LDIRT = profile.h metrics.h so_locations *.log help.dir help.pag *.pmda_$(IAM).so
52 PROFILEHEADER = ../source/include/smbprofile.h
54 INSTALL = install
55 CC = cc
57 default: $(TARGETS)
59 install: default
61 $(CMDTARGET): profile.h metrics.h $(CFILES)
62 $(CC) $(CFLAGS) $(CFILES) $(LDOPTS) $(LDLIBS) -o $@
64 $(LIBTARGET): profile.h metrics.h $(CFILES)
65 $(CC) $(CFLAGS) $(DSOOPTS) $(LDOPTS) $(CFILES) $(LDLIBS) -o $@
67 metrics.h: profile.h mkheader.pl
68 ./mkheader.pl
70 profile.h: $(PROFILEHEADER)
71 ln -s $(PROFILEHEADER) $@
73 clobber clean:
74 rm -f $(LDIRT) $(TARGETS)