To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 891
890  |  892
Subject: 
Recommended change to MAKEFILE
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 2 Mar 2000 21:13:52 GMT
Viewed: 
1287 times
  
Currently, legOS uses this in the makefile:

# for the kernel
.depend
  makedepend $(LEGOS_ROOT)kernel/*.c -Y $(CINC) -f- | $(FIXDEPS)
$(LEGOS_ROOT)kernel/ > .depend

# for a typical program
.depend:
  makedepend *.c -Y $(CINC) -f- | $(FIXDEPS) $(LEGOS_ROOT)kernel/ >
.depend

I recomend this change:

# for the kernel
.depend:
  $(CC) -M $(CFLAGS) -c $(LEGOS_ROOT)kernel/*.c >.depend

# for a typecial program
.depend:
  $(CC) -M $(CFLAGS) -c *.c >.depend

This simple changes has three advantages.  1. The program MAKEDEPEND is
no longer required.  2. The Perl script "FIXDEPS" is not needed.  3. The
dependency list will be created using the same search path as when the
compile occurs.

This change was tested using both egcs 2.91.66 and gcc 2.95.2.



Message has 1 Reply:
  Re: Recommended change to MAKEFILE
 
(...) imho, a very good idea. Perhaps you should check that in to CVS ? -- Martin (25 years ago, 3-Mar-00, to lugnet.robotics.rcx.legos)

6 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR