|
From: | Boris Godin |
Subject: | Re: make and swig |
Date: | Tue, 16 Sep 2008 08:41:36 -0300 |
User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
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: address@hidden -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
[Prev in Thread] | Current Thread | [Next in Thread] |