# $OpenBSD: Makefile,v 1.9 2003/12/03 22:28:01 grange Exp $ .include .if (!exists(arch/${MACHINE}/Makefile.inc) && \ !exists(arch/${MACHINE_ARCH}/Makefile.inc)) NOMAN=no, man NOPROG=no, man .else PROG=pmdb SRCS=pmdb.c symbol.c clit.c process.c signal.c break.c core.c # support for NetBSD .if defined(OBJECT_FMT) .if ${OBJECT_FMT} == "ELF" ELF_TOOLCHAIN=yes .else ELF_TOOLCHAIN=no .endif .endif .if (${ELF_TOOLCHAIN:L} == "yes") SRCS+=elf_syms.c CPPFLAGS+=-DPMDB_ELF .else SRCS+=aout_syms.c CPPFLAGS+=-DPMDB_AOUT .endif LDADD=-ledit -lcurses DPADD=${LIBEDIT} ${LIBCURSES} CPPFLAGS+=-I${.CURDIR} .if exists(arch/${MACHINE}/Makefile.inc) .PATH: ${.CURDIR}/arch/${MACHINE} .include "arch/${MACHINE}/Makefile.inc" CPPFLAGS+=-I${.CURDIR}/arch/${MACHINE} .endif .if (${MACHINE_ARCH} != ${MACHINE}) && exists(arch/${MACHINE_ARCH}/Makefile.inc) .PATH: ${.CURDIR}/arch/${MACHINE_ARCH} .include "arch/${MACHINE_ARCH}/Makefile.inc" CPPFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH} .endif COPTS+=-Wall -Wno-uninitialized .endif .include