BUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
authorGerald Carter <jerry@samba.org>
Wed, 17 Mar 2004 17:13:36 +0000 (17:13 +0000)
committerGerald Carter <jerry@samba.org>
Wed, 17 Mar 2004 17:13:36 +0000 (17:13 +0000)
pcp/Makefile

index e01731b2565efcab0d0513ab07da1d6c868baa3c..e4b5fb75064073c448a7e58937837893fd3c4957 100644 (file)
@@ -47,7 +47,9 @@ CFLAGS        = $(DEBUG)
 LDOPTS =
 LDLIBS = -lpcp_pmda -lpcp
 DSOOPTS        = -shared
-LDIRT  = metrics.h 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
@@ -65,5 +67,8 @@ $(LIBTARGET): profile.h metrics.h $(CFILES)
 metrics.h:     profile.h mkheader.pl
        ./mkheader.pl
 
+profile.h:     $(PROFILEHEADER)
+       ln -s $(PROFILEHEADER) $@
+
 clobber clean:
        rm -f $(LDIRT) $(TARGETS)