[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Application specific include and library directories
From: |
Rob Kewley |
Subject: |
Application specific include and library directories |
Date: |
Mon, 04 May 1998 06:17:35 -0400 |
I have added a couple of lines to an application Makefile and
Makefile.conf which make it easy to link a swarm application against an
existing library (without having to edit OTHERINCDIRS and OTHERLIBDIRS)
in Makefile.conf each time. These changes along with a couple lines of
instruction may be a useful addition to the Swarm distribution.
I added the variable APPLIBDIRS and APPINCDIRS to Makefile as shown
below:
SWARMHOME=/usr/local/swarm-1.0.5
APPLICATION=battle
OBJECTS=Location.o MilMap.o BatSummary.o Order.o Coa.o UnitOrg.o
TaskOrg.o UnitCdr.o BattleStats.o BatModSwarm.o Combatant.o
BatObsSwarm.o CoaGenome.o MapDisplay.o GraphicControlMeasure.o
PointGraphic.o PolygonGCM.o main.o DynMatrix.o trig.o
APPLIBS= -lspace -lmylib /home/kewler/GCTP/gctpc/source/geolib.a
APPINCDIRS= -I/home/kewler/GCTP/gctpc/source/
APPLIBDIRS=
include $(SWARMHOME)/Makefile.appl
...
I edited line 469 of Makefile.conf as follows:
CFLAGS= $(OPTFLAGS) $(WARNFLAGS) -I$(INCDIR) $(OTHERINCDIRS)
$(APPINCDIRS) $(EXTRACFLAGS)
and line 480 as follows:
MINLDFLAGS= -L$(LIBDIR) $(OTHERLIBDIRS) $(APPLIBDIRS) $(EXTRALDFLAGS)
Rob Kewley
==================================
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.
==================================
- Application specific include and library directories,
Rob Kewley <=