#!/usr/bin/make -f include ../source.mk nop: @: configure: oh-autoconfigure -B obj -- \ --with-pkgversion='GDB for ProteanOS' \ --enable-tui \ --disable-gdbtk \ --with-system-readline \ --with-system-zlib \ --with-expat \ --without-python \ --with-system-gdbinit=/etc/gdb/gdbinit \ --with-lzma touch $@ build: configure oh-autobuild -B obj touch $@ install: build (cd obj; make MAKEINFO=: DESTDIR="$${PWD}/../dest" install) # Remove BFD files. rm -v \ 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 development files. rm -v 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 # Remove provided Python gdbinit files. rm -v dest/usr/share/gdb/system-gdbinit/*.py # Make /usr/bin/gdbtui. printf '#!/bin/sh\n\nexec "$${0%%tui}" --tui "$${@}"\n' \ >dest/usr/bin/gdbtui oh-fixperms oh-strip oh-installfiles oh-shlibdeps