swarm-support
[Top][All Lists]
Advanced

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

Re: Makefile


From: xueyue
Subject: Re: Makefile
Date: Wed, 23 Jun 1999 16:14:13 +0000

Gary Polhill wrote:
> 
> xueyue wrote:
> >
> > =============Makefile=======================
> > ifeq ($(SWARMHOME),)
> > SWARMHOME=/usr
> > endif
> > APPLICATION=mats
> > OBJECTS=main.o traveller/Traveller.o clock/CurrentTime.o ModelSwarm.o
> > node/MATSNodeItem.o node/MATSLinkItem.o router/RouteFinder.o
> > include $(SWARMHOME)/etc/swarm/Makefile.appl
> > main.o: main.m ModelSwarm.h
> > router/RouteFinder.o: router/RouteFinder.h router/RouteFinder.m
> > ==============End====================================
> >
> >
> > Are there somethings missing in my Makefile?
> >
> I think maybe you need the following lines at the end:
> 
> traveller/Traveller.o: traveller/Traveller.h traveller/Traveller.m
> clock/CurrentTime.o: clock/CurrentTime.h clock/CurrentTime.m
> node/MATSNodeItem.o: node/MATSNodeItem.h node/MATSNodeItem.m
> node/MATSLinkItem.o: node/MATSLinkItem.h node/MATSLinkItem.m
> 
> (just as you do for router/RouteFinder.o)
> 

No, that is not the problem here. I can add this to 
Makefile, but the result is the same. 

I assumed that put a:

dir/file.o: dir/file.h dir/file.m 

make will produce a dir/file.o

Maybe I need a command line (but I do not know what) at the beginning of
the Makefile.

Attachment: vcard.vcf
Description: Card for Xueyue Huang


reply via email to

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