#!/usr/bin/make -f include ../source.mk nop: @: configure: oh-autoconfigure -B obj -- \ --enable-tui \ --disable-gdbtk \ --with-system-readline \ --with-expat \ --without-python \ --with-system-gdbinit=/etc/gdb/gdbinit \ --without-lzma touch $@ build: configure oh-autobuild -B obj oh-autobuild -B obj -T check-gdb touch $@ install: build oh-autoinstall -B obj # Remove BFD files. rm -f \ dest/usr/include/*.h \ dest/usr/lib/$(OPK_HOST_ARCH)/libbfd.* \ dest/usr/lib/$(OPK_HOST_ARCH)/libopcodes.* \ dest/usr/share/info/bfd.info \ dest/usr/share/locale/*/LC_MESSAGES/bfd.mo \ dest/usr/share/locale/*/LC_MESSAGES/opcodes.mo # Remove libiberty. rm -f \ dest/usr/lib/lib/libiberty.* # Remove GNU Info index. rm -f dest/usr/share/info/dir # Remove Python bindings. rm -Rf dest/usr/share/gdb/python # Remove development files. rm -f dest/usr/include/gdb/jit-reader.h # Make /etc/gdbinit. mkdir -p dest/etc/gdb printf '# System-wide GDB initialization file.\n' >dest/etc/gdb/gdbinit # Make /usr/bin/gdbtui. printf '#!/bin/sh\n\nexec "$${0%%tui}" --tui "$${@}"\n' \ >dest/usr/bin/gdbtui oh-fixperms oh-strip oh-installfiles