r23787: Remove the pcp example code until SGI have given us approval to use it
[kai/samba.git] / pcp / Makefile
index 96d2b79cca422943d14d7f118ae3fb078515c9a2..e4b5fb75064073c448a7e58937837893fd3c4957 100644 (file)
@@ -47,7 +47,9 @@ CFLAGS        = $(DEBUG)
 LDOPTS =
 LDLIBS = -lpcp_pmda -lpcp
 DSOOPTS        = -shared
-LDIRT  = so_locations *.log help.dir help.pag *.pmda_$(IAM).so
+LDIRT  = profile.h metrics.h so_locations *.log help.dir help.pag *.pmda_$(IAM).so
+
+PROFILEHEADER = ../source/include/smbprofile.h
 
 INSTALL        = install
 CC     = cc
@@ -56,11 +58,17 @@ default: $(TARGETS)
 
 install:       default
 
-$(CMDTARGET):  profile.h $(CFILES)
+$(CMDTARGET):  profile.h metrics.h $(CFILES)
        $(CC) $(CFLAGS) $(CFILES) $(LDOPTS) $(LDLIBS) -o $@
 
-$(LIBTARGET):  profile.h $(CFILES)
+$(LIBTARGET):  profile.h metrics.h $(CFILES)
        $(CC) $(CFLAGS) $(DSOOPTS) $(LDOPTS) $(CFILES) $(LDLIBS) -o $@
 
+metrics.h:     profile.h mkheader.pl
+       ./mkheader.pl
+
+profile.h:     $(PROFILEHEADER)
+       ln -s $(PROFILEHEADER) $@
+
 clobber clean:
        rm -f $(LDIRT) $(TARGETS)