From 08e77f6f601736df1a53c33c4e13bc3fb2e98af4 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Fri, 4 Jun 2010 13:31:17 -0400 Subject: trace-cmd: Add PLYTHON_DIR to search path for the python plugins Automate the loading of the PYTHON_DIR to tell the plugins where to load the trace-cmd specific modules. Signed-off-by: Steven Rostedt --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ad2d708..a1096f2 100644 --- a/Makefile +++ b/Makefile @@ -487,15 +487,17 @@ python-gui: ctracecmd.so ctracecmdgui.so PHONY += python-plugin python-plugin: plugin_python.so python +CFLAGS_plugin_python.o += $(PYTHON_DIR_SQ) + do_compile_python_plugin_obj = \ ($(print_plugin_obj_compile) \ - $(CC) -c $(CFLAGS) $(PYTHON_INCLUDES) -fPIC -o $@ $<) + $(CC) -c $(CFLAGS) $(CFLAGS_$@) $(PYTHON_INCLUDES) -fPIC -o $@ $<) do_python_plugin_build = \ ($(print_plugin_build) \ $(CC) -shared $(PYTHON_LDFLAGS) -o $@ $<) -plugin_python.o: %.o : $(src)/%.c +plugin_python.o: %.o : $(src)/%.c trace_python_dir $(Q)$(do_compile_python_plugin_obj) plugin_python.so: %.so: %.o -- cgit v1.2.2