TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
MODULE    = winedbg.exe
APPMODE   = -mconsole
IMPORTS   = psapi dbghelp advapi32 kernel32 ntdll
DELAYIMPORTS = user32
EXTRALIBS = @LIBPOLL@

C_SRCS = \
	be_alpha.c \
	be_i386.c \
	be_ppc.c \
	be_x86_64.c \
	break.c \
	db_disasm.c \
	display.c \
	expr.c \
	gdbproxy.c \
	info.c \
	memory.c \
	source.c \
	symbol.c \
	stack.c \
	tgt_active.c \
	tgt_minidump.c \
	tgt_module.c \
	types.c \
	winedbg.c

LEX_SRCS   = debug.l
BISON_SRCS = dbg.y

MANPAGES = winedbg.man

@MAKE_PROG_RULES@

all: $(MANPAGES)

install:: $(MANPAGES) $(DESTDIR)$(mandir)/man$(prog_manext)
	$(INSTALL_DATA) winedbg.man $(DESTDIR)$(mandir)/man$(prog_manext)/winedbg.$(prog_manext)

uninstall::
	$(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/winedbg.$(prog_manext)

dbg.tab.c: dbg.tab.h   # for parallel makes

@DEPENDENCIES@  # everything below this line is overwritten by make depend

debug.yy.o: dbg.tab.h
