|
From: | Eric Chassande-Mottin |
Subject: | Re: use of mkoctfile with autoconf/automake |
Date: | Fri, 2 Mar 2007 19:37:29 +0100 |
I didn't mean to suggest that you could expect it to work this way, just that you could use it in a way similar to the way you use any compiler. You will have to write some pattern rules specifically for it, or at the least, make sure that the CXXFLAGS variable is also adjusted appropriately for mkoctfile.
here is the src/Makefile.am which does the job. .cc.o: $(MKOCTFILE) -c -o $@ $< bin_PROGRAMS=foo foo_SOURCES=foo.cc foo_LINK=$(MKOCTFILE) -o $@ this is not fully satisfactory since it defines a generic rule for compilation only. i couldn't find any generic solution for the linking step in the automake manual. the definition of the linker is done here individually for each DLDs. thanks, eric.
[Prev in Thread] | Current Thread | [Next in Thread] |