You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/02/27 15:14:17 UTC

svn commit: r512262 - /spamassassin/trunk/masses/Makefile

Author: jm
Date: Tue Feb 27 06:14:16 2007
New Revision: 512262

URL: http://svn.apache.org/viewvc?view=rev&rev=512262
Log:
more portability-friendly makefile; LIBDIR has to be update between solaris and linux.  also, fix deps for garescorer binary

Modified:
    spamassassin/trunk/masses/Makefile

Modified: spamassassin/trunk/masses/Makefile
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/Makefile?view=diff&rev=512262&r1=512261&r2=512262
==============================================================================
--- spamassassin/trunk/masses/Makefile (original)
+++ spamassassin/trunk/masses/Makefile Tue Feb 27 06:14:16 2007
@@ -3,6 +3,8 @@
 LDFLAGS=	-lm
 
 PGAPACK=	/local/pgapack-1.0.0.1
+PGAPACKLIBDIR=  $(PGAPACK)/lib/linux    # linux
+# PGAPACKLIBDIR=  $(PGAPACK)/lib/sun4     # solaris
 
 # What rule scoreset are we using?
 include config
@@ -20,8 +22,8 @@
 perceptron.o: tmp/rules_${SCORESET}.pl tmp/tests.h tmp/scores.h
 	$(CC) $(CFLAGS) -c -o perceptron.o perceptron.c
 
-garescorer: tmp/rules_${SCORESET}.pl tmp/tests.h tmp/scores.h
-	$(CC) $(CFLAGS) -DWL=2 -DOPTIMIZE -L $(PGAPACK)/lib/sun4 \
+garescorer: tmp/rules_${SCORESET}.pl tmp/tests.h tmp/scores.h garescorer.c
+	$(CC) $(CFLAGS) -DWL=2 -DOPTIMIZE -L $(PGAPACKLIBDIR) \
           -I $(PGAPACK)/include garescorer.c -o garescorer -lpgaO $(LDFLAGS)
 
 tmp/rules_${SCORESET}.pl: tmp/.created ../build/parse-rules-for-masses