mirror of
https://github.com/tromey/gdb-gui.git
synced 2025-12-15 23:00:05 +01:00
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
23 lines
604 B
Makefile
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
|