# TrueReality - Makefile.objs
# Copyright (C) 1998, 1999 Niki W. Waibel
#
# This program is free software; you can redistribute it and/
# or modify it under the terms of the GNU General Public Li-
# cence as published by the Free Software Foundation; either
# version 2 of the Licence, or any later version.
#
# This program is distributed in the hope that it will be use-
# ful, but WITHOUT ANY WARRANTY; without even the implied war-
# ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public Licence for more details.
#
# You should have received a copy of the GNU General Public
# Licence along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
# USA.
#
# Information about me (the author):
#   Niki W. Waibel, Reichenau 20, 6890 Lustenau, Austria - EUROPE
#   niki.waibel@gmx.net





###############################################################################
# You shouldn't change anything in this file unless you are a developer.      #
# Changes can be done in 'Makefile.tmpl'.                                     #





# ARCHITECTURE #

OBJ_ARCH = \
	os/$(ARCH)/signal.o





# DISPLAY #

ifdef DISP
ifneq ($(DISP),none)

OBJ_DISP = \
	output/display/$(DISP)/$(DISP).o

endif
endif



ifeq ($(DISP),x11)
ifneq "$(findstring DISPLAY,$(ASM))" "DISPLAY"

OBJ_DISP := \
	$(OBJ_DISP) output/display/sw_renderer.o

else

OBJ_DISP := \
	$(OBJ_DISP) asm/$(MACH)/output/display/sw_renderer.o

endif
endif



ifeq ($(DISP),svgalib)
ifneq "$(findstring DISPLAY,$(ASM))" "DISPLAY"

OBJ_DISP := \
        $(OBJ_DISP) output/display/sw_renderer.o

else

OBJ_DISP := \
        $(OBJ_DISP) asm/$(MACH)/output/display/sw_renderer.o

endif
endif



ifeq ($(DISP),ncurses)
ifneq "$(findstring DISPLAY,$(ASM))" "DISPLAY"

OBJ_DISP := \
        $(OBJ_DISP) output/display/sw_renderer.o

else

OBJ_DISP := \
        $(OBJ_DISP) asm/$(MACH)/output/display/sw_renderer.o

endif
endif





# KEYBOARD #

OBJ_KEYB = \
	input/keyboard/$(KEYB).o





# JOYSTICK #

ifdef JOYS
ifneq ($(JOYS),none)

OBJ_JOYS = \
	input/joystick/$(JOYS).o

endif
endif





# AUDIO #

ifdef AUDIO
ifneq ($(AUDIO),none)

OBJ_AUDI = \
	output/audio/$(AUDIO).o

endif
endif





# CPU #

ifneq "$(findstring CPU,$(ASM))" "CPU"
OBJ_CPU = \
	N64/cpu.o
else
OBJ_CPU = \
	asm/$(MACH)/N64/cpu.o
endif





# N64 memory #

ifneq "$(findstring MEMORY,$(ASM))" "MEMORY"
OBJ_MEMORY = \
	N64/memory.o
else
OBJ_MEMORY = \
	asm/$(MACH)/N64/memory.o
endif





# N64 core #

OBJ_N64 = \
	$(OBJ_CPU) \
	$(OBJ_MEMORY) \
	N64/controller.o \
	N64/rsp.o \
	N64/rdp.o \
	N64/dma.o \
	N64/interrupts.o \
	N64/exceptions.o





# native core #

ifdef NATIVE
OBJ_NATIVE = \
	native/ROM_scanner.o \
	native/funktions.o
endif




# main core #

OBJ_MAIN = \
	dispatch.o \
	endian.o \
	main.o \
	parser.o \
	file_loader.o

ifdef DBG
OBJ_MAIN := \
	$(OBJ_MAIN) debug.o
endif





# core #

OBJCORE = \
	$(OBJ_ARCH) \
	$(OBJ_DISP) \
	$(OBJ_AUDI) \
	$(OBJ_KEYB) \
	$(OBJ_JOYS) \
	$(OBJ_N64)  \
	$(OBJ_NATIVE)  \
	$(OBJ_MAIN)





