automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbye question: autoconf/make with non standard compiler/linker


From: Eric Chassande-Mottin
Subject: newbye question: autoconf/make with non standard compiler/linker
Date: Mon, 5 Mar 2007 11:11:12 +0100

hi,

I'm trying to use autoconf/make to compile/link a package of C++ routines.
these routines are so-called DLD (dynamically loadable functions) for
GNU Octave.
they are compiled and linked with "mkoctfile" (which internally use g++).

the idea is to replace the usual C++ compiler and linker by mkoctfile.
I can do this easily for the compiler by stating new compiling rules in
the Makefile.am. But I couldn't find any nice solution for the linking step.
The solution I am using now is to set the linker individually for each DLD:

-----------------------------------------------------------------------------------------------------------------------
Makefile.am
================================================

.cc.o:
       $(MKOCTFILE) -c -o $@ $<

bin_PROGRAMS=foo

foo_SOURCES=foo.cc

foo_LINK=$(MKOCTFILE) -o $@

================================================

[see also the complete package attached here]

any better solution?

eric.

Attachment: foo.tgz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]