coping with relative paths in makefile

11 views
Skip to first unread message

Knut Heidemann

unread,
May 1, 2020, 5:07:28 AM5/1/20
to PSOPT users group
Hi Everyone,

I am trying to compile my code lying in some directory outside psopt using the library paths in "Makefile_linux.inc". Unfortunately there are many relative paths. Is there a simple way of circumventing this problem without changing "Makefile_linux.inc"? Something like "cd" to the example directory? Does anybody have a template for this purpose?

I do not quite get the role of

CHAIN_O = $(CHAIN:%=$(EXAMPLESDIR)/%.o)

either, and how it needs to be adjusted.

Any help will be very much appreciated.

Kind regards,
–Knut.
Reply all
Reply to author
Forward
0 new messages