|
In lugnet.robotics.rcx.legos, Michael Ash writes:
> I finally have a project that's large enough and well-enough organized
> that I have two .c files. (One holds fixed-point math routines.) Now, the
> README file states "If you need more source files, add them in the
> Makefile." My question is, what and where? I opened up the makefile, and
> I just had no idea what to change or anything like that.
>
> I'm using WinLegOS 0.2.2 with the 0.2.3 sources grafted in.
>
> Thanks in advance.
>
> --
> "Our doubts are traitors, and make us lose the good we oft might win by
> fearing to attempt." - William Shakespeare
>
> Mike Ash - <http://www.mikeash.com/>, <mailto:mail@mikeash.com>
I have added random number generators to either of the c library, or to the
float library (v0.2.3, on Linux). What I did was cd to the lib/c (say)
directory, and deposit my source files there.
I then edited the Makefile in this directory, and added the filenames to the
line $(SOURCES) the names should be space seperated.
Save the make file and type make in this directory. The build is designed so
you can do this. When you have got rid of the errors, do a make clean, cd to
the top level directory and rebuild legOS. You should then be able to use your
functions.
Note - be sure they are well debugged, I locked up my RCX plenty doing this:-)
Stuart
|
|
Message is in Reply To:
| | Makefile question
|
| I finally have a project that's large enough and well-enough organized that I have two .c files. (One holds fixed-point math routines.) Now, the README file states "If you need more source files, add them in the Makefile." My question is, what and (...) (25 years ago, 21-Apr-00, to lugnet.robotics.rcx.legos)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|