|
Post by basica on Jan 13, 2015 18:33:22 GMT 1
I was wondering if there is a way to add extra object files to the compile command line. The options -
don't seem to provide for adding extra object files to include in the compile directive.
For example:
cc -o myfilename myfilename.bac.o objectfile1.o objectifile2.o -lbacon -lm -ldl
I was just looking at the "vault" program from greco558, where extra object files had to be added by a custom "makefie" script.
Regards, basica
.
|
|
|
Post by Pjot on Jan 15, 2015 16:01:16 GMT 1
Hi basica,
Sorry for my late response, currently I am traveling until next week Thursday.
For your question, indeed there is no such option. For now you have to follow that 'procedure' to manually edit the Makefile.
Br Peter
|
|
|
Post by basica on Jan 16, 2015 16:19:00 GMT 1
Peter,
Thanks for your response.
On further thought, this seems to work.
'Make a static archive from addon object files ar rcs libobjects.a objectfile1.o objectifile2.o 'Bacon add library bacon -l -L/path/to/lib -lobjects myfilename.bac -or- PRAGMA LDFLAGS -L/path/to/lib -lobjects
Regards, basica
|
|