# only OS specific output files and rules
OSOBJS = \
        $(OBJ)/Win32/win32.o \
        $(OBJ)/Win32/video.o \
        $(OBJ)/Win32/blit.o \
        $(OBJ)/Win32/asmblit.o \
        $(OBJ)/Win32/sound.o \
        $(OBJ)/Win32/input.o \
        $(OBJ)/Win32/ticker.o \
        $(OBJ)/Win32/fileio.o \
        $(OBJ)/Win32/mouse.o \
        $(OBJ)/Win32/Keyboard.o \
        $(OBJ)/Win32/Joystick.o \
        $(OBJ)/Win32/mzip.o \
        $(OBJ)/Win32/DirectDraw.o \
        $(OBJ)/Win32/DirectInput.o \
        $(OBJ)/Win32/DIMouse.o \
        $(OBJ)/Win32/DIKeyboard.o \
        $(OBJ)/Win32/DIJoystick.o \
        $(OBJ)/Win32/misc.o \
        $(OBJ)/Win32/config.o \
        $(OBJ)/Win32/asmtile.o \
        $(OBJ)/Win32/tsv.o

ifdef MAME_AVI
OSOBJS += \
	$(OBJ)/Win32/Avi.o \
	$(OBJ)/Win32/Wav.o
endif

ifdef USE_VC
OSOBJS += \
        $(OBJ)/Win32/dirent.o
endif

ifdef BUILD_CONSOLE
OSOBJS += $(OBJ)/Win32/fronthlp.o
else
OSOBJS += \
        $(OBJ)/Win32/Mame32UI/M32Util.o \
        $(OBJ)/Win32/Mame32UI/Audit32.o \
        $(OBJ)/Win32/Mame32UI/Bitmask.o \
        $(OBJ)/Win32/Mame32UI/ColumnEdit.o \
        $(OBJ)/Win32/Mame32UI/DataMap.o \
        $(OBJ)/Win32/Mame32UI/Directories.o \
        $(OBJ)/Win32/Mame32UI/Properties.o \
        $(OBJ)/Win32/Mame32UI/Screenshot.o \
        $(OBJ)/Win32/Mame32UI/Splitters.o \
        $(OBJ)/Win32/Mame32UI/TreeView.o \
        $(OBJ)/Win32/Mame32UI/Win32ui.o
endif

ifdef JAPANESE
RES = $(OBJ)/Win32/mame32jp.o
else
RES = $(OBJ)/Win32/mame32e.o
endif

# additional OS specific object files

ifdef KAILLERA
OSOBJS +=  $(OBJ)/Win32/Mame32UI/KailleraChat.o \
           $(OBJ)/Win32/ui_temp.o \
           $(OBJ)/Win32/extmem.o \
           $(OBJ)/Win32/kailleraclient.o
endif

ifdef HELP
HELPFILES += $(OBJ)/Win32/hlp/Mame32.hlp


$(HELPFILES): src/Win32/hlp/Mame32.hpj
        @MakeHelp.bat
endif
