OUTPUT_DIR = ...
INPUT_DIR = ...
$(OUTPUT_DIR)/%.py : $(INPUT_DIR)/%.i
swig -cxx -python $< -o $@
Cheers.
debutant wrote:
Hello,
I am a new make user and I have problems to write a Makefile to
compile swig interfaces.
I have understood that in order to compile a collection a .cpp files
I can use the following rule:
%.o : %.cpp
g++ -c $< -o $@
For each .cpp file the g++ compilation will produce a .o file.
In the case of swig for each interface file .i the compilation produces 2
files: a .py (python file)
and a .cxx file.
For example, if I want to compile foo.i, I do:
swig -cxx -python foo.i
and I get the files foo.py and foo_wrap.cxx.
Here I don't know how to write a rule for my makefile.
I would really really appreciate any kind of help.
Thanks a lot in advance.
Sincerely,
Michel
--
Boris Godin
*Java Developer* - Gameloft COR
Paraná 560, Nueva Córdoba (CP 5000)
Tel.: (+54 0351) 460 26 26 int. 111
MSN: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make