swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makefile question


From: Alex Lancaster
Subject: Re: Makefile question
Date: 28 Mar 2000 00:51:08 -0700
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6

>>>>> "GS" == Geoffrey Schultz <address@hidden> writes:

GS> What's the preferred method (variables in the Makefile) to add
GS> extra libs and include files to build an application (but not all
GS> applications).  To make my question more concrete -- I want to
GS> include files in /usr/local/CVODE/include and link the library
GS> /usr/local/CVODE/lib/libcvode.a

Assuming you're including:

include $(SWARMHOME)/etc/swarm/Makefile.appl

Here's one way:

SWARMINCLUDES+=-I/usr/local/CVODE/include
APPLIBS=/usr/local/CVODE/lib/libcvode.a

The "+=" syntax in SWARMINCLUDES, basically appends the given variable
to SWARMINCLUDES, without overriding the current variables.  This
feature may be specific to GNU make, so YMMV.

Alex
-- 
Alex Lancaster * address@hidden * www.santafe.edu/~alex * 505 984-8800 x242
Santa Fe Institute (www.santafe.edu) & Swarm Development Group (www.swarm.org)

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]