Hi Bodo,
> But actually I want that the define is also passed at compile time to
> > the lib files (file1,file2 and file3).
> Because of obvious reasons. ;-)
>
> > Can anyone point me to an example of a Makefile for SDCC with such a
> > construction or a hint on how this can be solved?
> In my Makefiles I always use different names for the compiled libraries.
> The source is shared, though. The advantage is that the libraries don't
> have to be recompiled if another target is built.
>
If I understand correctly for each target a library variable has to be
created, each target then links to its own library and those libary files
are on forehand compiled with the appropriate target variable?
Regards,
Gerard
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user