#****************************************************************************
#
#       atari Emulator Make File
#
#****************************************************************************
#
#   Title:      Makefile
#
#   Group:      Emulator
#
#   Revision:   1.00
#
#   Date:       July 13, 1994
#
#   Author:     Michael Munoz
#
#******************************************************************************
#
#   Change log:
#
#     DATE    REVISION                  DESCRIPTION
#   --------  --------  -------------------------------------------------------
#   02/09/88    1.00    Original
#
#******************************************************************************

#
#       Definitions for directories
#
BLD     =.
SRC     =.
OBJ     =.
INC     =.

#
#       Definitions for the assembler
#
AS      = tasmx
AFLAGS  = /ml /m5 /t /Zi /Zd /l /I$(INC)
AOPTS   =

#
#       Definitions for the linker
#
LD      = tlink
LFLAGS  = /m /li /v
LOPTS   =

#******************************************************************************
#       PROGRAM module dependencies
#******************************************************************************


$(BLD)\Atari.Exe:       $(OBJ)\Emulate.Obj                              \
                        $(OBJ)\Atari.Obj                                \
                        $(OBJ)\Hardware.Obj                             \
                        $(OBJ)\sio.obj                                  \
                        $(OBJ)\ANTIC.Obj                                \
                        $(OBJ)\GITA.obj                                 \
			$(OBJ)\Video.Obj                                \
                        $(OBJ)\Reset.Obj                                \
                        $(OBJ)\Memory.Obj                               \
                        $(OBJ)\Keyboard.Obj                             \
                        $(OBJ)\Int.Obj                                  \
                        $(OBJ)\Data.Obj
        $(LD) $(LOPTS) $(LFLAGS) @Atari.Lnk

$(OBJ)\Emulate.Obj:     $(SRC)\Emulate.Asm                              \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc
	$(AS) $(AOPTS) $(AFLAGS) $(SRC)\Emulate,$(OBJ)\Emulate;

$(OBJ)\Atari.Obj:       $(SRC)\Atari.Asm                                \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc                              \
			$(INC)\Strucs.Inc
	$(AS) $(AOPTS) $(AFLAGS) $(SRC)\atari,$(OBJ)\atari;


$(OBJ)\Hardware.Obj:    $(SRC)\Hardware.asm                             \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc                              \
                        $(INC)\Atari.Inc
        $(AS) $(AOPTS) $(AFLAGS) $(SRC)\hardware,$(OBJ)\hardware;

$(OBJ)\sio.Obj:         $(SRC)\sio.asm                                  \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc                              \
                        $(INC)\Atari.Inc
        $(AS) $(AOPTS) $(AFLAGS) $(SRC)\sio,$(OBJ)\sio;


$(OBJ)\ANTIC.Obj:       $(SRC)\ANTIC.asm                                \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc                              \
                        $(INC)\Atari.Inc
        $(AS) $(AOPTS) $(AFLAGS) $(SRC)\Antic,$(OBJ)\Antic;

$(OBJ)\GITA.Obj:       $(SRC)\GITA.asm                                \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc                              \
                        $(INC)\Atari.Inc
        $(AS) $(AOPTS) $(AFLAGS) $(SRC)\GITA,$(OBJ)\GITA;


$(OBJ)\Memory.Obj:      $(SRC)\Memory.Asm                               \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc
	$(AS) $(AOPTS) $(AFLAGS) $(SRC)\Memory,$(OBJ)\Memory;

$(OBJ)\Video.Obj:       $(SRC)\Video.Asm                                \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc
	$(AS) $(AOPTS) $(AFLAGS) $(SRC)\Video,$(OBJ)\Video;

$(OBJ)\Keyboard.Obj:    $(SRC)\Keyboard.Asm                             \
                       $(INC)\Macros.Inc                               \
                       $(INC)\Equates.Inc
       $(AS) $(AOPTS) $(AFLAGS) $(SRC)\Keyboard,$(OBJ)\Keyboard;

$(OBJ)\Reset.Obj:       $(SRC)\Reset.Asm                                \
                       $(INC)\Macros.Inc                               \
                       $(INC)\Equates.Inc
       $(AS) $(AOPTS) $(AFLAGS) $(SRC)\Reset,$(OBJ)\Reset;

$(OBJ)\Int.Obj:         $(SRC)\Int.Asm                                  \
                       $(INC)\Macros.Inc                               \
                       $(INC)\Equates.Inc                              \
                       $(INC)\Strucs.Inc
       $(AS) $(AOPTS) $(AFLAGS) $(SRC)\Int,$(OBJ)\Int;

#$(OBJ)\Input.Obj:       $(SRC)\Input.Asm                                \

$(OBJ)\Data.Obj:        $(SRC)\Data.Asm                                 \
			$(INC)\Macros.Inc                               \
			$(INC)\Equates.Inc                              \
			$(INC)\Strucs.Inc
	$(AS) $(AOPTS) $(AFLAGS) $(SRC)\Data,$(OBJ)\Data;

