Files
gdb-gui/Makefile
Tom Tromey 22bdecb10d make it work with both python2 and python3
I ran 2to3, fixed up the output a tiny bit, and fixed the C module as
well.  I smoke tested with both versions of Python but didn't use it in
anger yet.

Fix #29
2015-05-19 09:44:09 -06:00

23 lines
604 B
Makefile

# This is passed to pkg-config to determine which python to use. It
# has to match your gdb.
pyname = python
all: gdb-gui.py gui/fix_signals.so
@:
gdb-gui.py: gdb-gui.py.in
sed -e "s,HERE,`pwd`," < gdb-gui.py.in > gdb-gui.py
gui/fix_signals.so: gui/fix-signals.c
gcc -shared -fPIC -g -o gui/fix_signals.so gui/fix-signals.c `pkg-config --cflags $(pyname)` `pkg-config --libs $(pyname)`
clean:
-rm gdb-gui.py gui/fix_signals.so
hack-gdbinit: all
if test -f $$HOME/.gdbinit && `grep -q gdb-gui $$HOME/.gdbinit`; then \
:; \
else \
echo "source `pwd`/gdb-gui.py" >> $$HOME/.gdbinit; \
fi