[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make and swig
From: |
debutant |
Subject: |
make and swig |
Date: |
Mon, 15 Sep 2008 14:42:37 -0700 (PDT) |
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
--
View this message in context:
http://www.nabble.com/make-and-swig-tp19501331p19501331.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- make and swig,
debutant <=