diff options
author | Darren Hart <dvhltc@us.ibm.com> | 2010-01-05 11:53:12 -0500 |
---|---|---|
committer | Darren Hart <dvhltc@us.ibm.com> | 2010-01-05 11:59:52 -0500 |
commit | cacc655df9360e74a02561312da0bb78fdbae38c (patch) | |
tree | e6c7ff28ad21019e0392fe87198096ab601fb2ec | |
parent | 5415361dc5ee7da15ac8434dd5853ae45c45e471 (diff) |
trace-view: cleanup python make targets
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
-rw-r--r-- | Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -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 | 132 | PYTHON_INCLUDES = `python-config --includes` |
133 | python: $(TCMD_LIB_OBJS) | 133 | PYGTK_CFLAGS = `pkg-config --cflags pygtk-2.0` |
134 | |||
135 | ctracecmd.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 | 140 | ctracecmdgui.so: $(TRACE_VIEW_OBJS) $(LIB_FILE) |
141 | python-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 | ||
146 | python: ctracecmd.so | ||
147 | |||
148 | .PHONY: python-gui | ||
149 | python-gui: ctracecmd.so ctracecmdgui.so | ||
147 | 150 | ||
148 | .PHONY: force | 151 | .PHONY: force |
149 | force: | 152 | force: |