aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Hart <dvhltc@us.ibm.com>2010-01-05 11:53:12 -0500
committerDarren Hart <dvhltc@us.ibm.com>2010-01-05 11:59:52 -0500
commitcacc655df9360e74a02561312da0bb78fdbae38c (patch)
treee6c7ff28ad21019e0392fe87198096ab601fb2ec
parent5415361dc5ee7da15ac8434dd5853ae45c45e471 (diff)
trace-view: cleanup python make targets
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
-rw-r--r--Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 3d17256..4826dd1 100644
--- a/Makefile
+++ b/Makefile
@@ -129,21 +129,24 @@ plugin_mac80211.so: plugin_mac80211.o
129 $(CC) -shared -nostartfiles -o $@ $< 129 $(CC) -shared -nostartfiles -o $@ $<
130 130
131 131
132.PHONY: python 132PYTHON_INCLUDES = `python-config --includes`
133python: $(TCMD_LIB_OBJS) 133PYGTK_CFLAGS = `pkg-config --cflags pygtk-2.0`
134
135ctracecmd.so: $(TCMD_LIB_OBJS)
134 swig -Wall -python -noproxy ctracecmd.i 136 swig -Wall -python -noproxy ctracecmd.i
135 #swig -Wall -python ctracecmd.i 137 gcc -fpic -c $(PYTHON_INCLUDES) ctracecmd_wrap.c
136 gcc -fpic -c `python-config --includes` ctracecmd_wrap.c
137 $(CC) --shared $^ ctracecmd_wrap.o -o ctracecmd.so 138 $(CC) --shared $^ ctracecmd_wrap.o -o ctracecmd.so
138 #$(CC) --shared $^ ctracecmd_wrap.o -o _ctracecmd.so
139 139
140.PHONY: python-gui 140ctracecmdgui.so: $(TRACE_VIEW_OBJS) $(LIB_FILE)
141python-gui: $(TRACE_VIEW_OBJS)
142 swig -Wall -python -noproxy ctracecmdgui.i 141 swig -Wall -python -noproxy ctracecmdgui.i
143 # FIXME: where do we get the pygtk include from? 142 gcc -fpic -c $(CFLAGS) $(INCLUDES) $(PYTHON_INCLUDES) $(PYGTK_CFLAGS) ctracecmdgui_wrap.c
144 gcc -fpic -c `python-config --includes` $(CFLAGS) $(INCLUDES) -I/usr/include/pygtk-2.0/ ctracecmdgui_wrap.c
145 $(CC) --shared $^ $(LIBS) $(CONFIG_LIBS) ctracecmdgui_wrap.o -o ctracecmdgui.so 143 $(CC) --shared $^ $(LIBS) $(CONFIG_LIBS) ctracecmdgui_wrap.o -o ctracecmdgui.so
146 144
145.PHONY: python
146python: ctracecmd.so
147
148.PHONY: python-gui
149python-gui: ctracecmd.so ctracecmdgui.so
147 150
148.PHONY: force 151.PHONY: force
149force: 152force: