From c9e9df3419e9dbbb65991ef9388480c8f2ed4dd0 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Wed, 27 Jan 1999 07:17:32 +0000 Subject: [PATCH] Adding pure target to run purify (Solaris) --- config/rules.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/rules.mk b/config/rules.mk index f6a8801ca6df..f477a178dc92 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -404,6 +404,17 @@ else $(CCF) -o $@ $^ $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) endif +# +# Purify target. Solaris/sparc only to start. +# Purify does not recognize "egcs" or "c++" so we go with +# "gcc" and "g++" for now. +# +pure: $(PROGRAM) +ifdef CPP_PROG_LINK + $(PURIFY) g++ $(CFLAGS) -o $^.pure $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) +else + $(PURIFY) $(CCF) -o $^.pure $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) +endif ifneq ($(OS_ARCH),OS2)