EXTRADEFS = -DWINE_NO_UNICODE_MACROS
MODULE    = wineconsole.exe
APPMODE   = -mwindows
IMPORTS   = advapi32
DELAYIMPORTS = comctl32 user32 gdi32

C_SRCS = \
	curses.c \
	dialog.c \
	registry.c \
	user.c \
	wineconsole.c

RC_SRCS = \
	wineconsole_Cs.rc \
	wineconsole_Da.rc \
	wineconsole_De.rc \
	wineconsole_En.rc \
	wineconsole_Eo.rc \
	wineconsole_Es.rc \
	wineconsole_Fr.rc \
	wineconsole_He.rc \
	wineconsole_Hu.rc \
	wineconsole_It.rc \
	wineconsole_Ko.rc \
	wineconsole_Lt.rc \
	wineconsole_Nl.rc \
	wineconsole_No.rc \
	wineconsole_Pl.rc \
	wineconsole_Pt.rc \
	wineconsole_Ro.rc \
	wineconsole_Ru.rc \
	wineconsole_Si.rc \
	wineconsole_Sv.rc \
	wineconsole_Tr.rc \
	wineconsole_Uk.rc \
	wineconsole_Zh.rc

MANPAGES = wineconsole.man

@MAKE_PROG_RULES@

all: $(MANPAGES)

install-man-pages:: $(MANPAGES) $(DESTDIR)$(mandir)/man$(prog_manext)
	$(INSTALL_DATA) wineconsole.man $(DESTDIR)$(mandir)/man$(prog_manext)/wineconsole.$(prog_manext)

@WOW64_DISABLE@ install install-lib:: install-man-pages

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