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:
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|