Skip to content

Commit

Permalink
swig: make python module depend on swig file
Browse files Browse the repository at this point in the history
Just so it's easier to modify the swig file,
make it depend on it.

Acked-by: Darren Hart <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
jmberg committed May 25, 2010
1 parent e17252c commit c5a437d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ clean:
PYTHON_INCLUDES = `python-config --includes`
PYGTK_CFLAGS = `pkg-config --cflags pygtk-2.0`

ctracecmd.so: $(TCMD_LIB_OBJS)
ctracecmd.so: $(TCMD_LIB_OBJS) ctracecmd.i
swig -Wall -python -noproxy ctracecmd.i
gcc -fpic -c $(PYTHON_INCLUDES) ctracecmd_wrap.c
$(CC) --shared $^ ctracecmd_wrap.o -o ctracecmd.so
$(CC) --shared $(TCMD_LIB_OBJS) ctracecmd_wrap.o -o ctracecmd.so

ctracecmdgui.so: $(TRACE_VIEW_OBJS) $(LIB_FILE)
swig -Wall -python -noproxy ctracecmdgui.i
Expand Down

0 comments on commit c5a437d

Please sign in to comment.