#
#       id: @(#)makefile 1.7 96/07/24
#
#       Copyright(c) 1995, FMI, Fujitsu Microelectronics, Inc.
#       All rights reserved.
#
#       This software (including any documentation) is untested, has not been
#       fully tested for viruses and has been provided to you without charge.
#       ACCORDINGLY, IT IS DELIVERED "AS IS" WITH NO WARRANTIES EXPRESS OR
#       IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY,
#       FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.  You bear all 
#       risk of nonperformance, loss of data and other problems and Fujitsu
#       Microelectronics, Inc. and Fujitsu Limited will not be liable under any
#       contract, negligence, strict liability or other theory for any damages
#       including, without limitation, direct, consequential or incidental nor
#       be required to provide substitute goods, services or technology.
#
#

#SLITELIB                = ../sw/pc/gnulib
SLITELIB                = ./libslite

# Specific SPARClite chip: eg. 930, 933h, 936
CHIP                    = 832
BOARD                   = 832db

# Name of executable program
PROGRAM                 = mon

# List of object modules
#OBJS                    = mon.o bio.o asi4.o asi1.o psr.o link_total.o link2.o
OBJS                    = mon.o bio.o asi4.o asi1.o psr.o 

# Controls if GDB debugger stub is invoked (i.e. controls which crt0** is linked)
#DEBUG                  = 
DEBUG                   = debug

# Address where programs is to be loaded
# We use beginning of DRAM
LOADADR                 =  08010000

# Optimization level (from -O0 to -O3)
# -O0 is recommended for easy use of GDB. When code is optimized 
# sometimes the code execution path does not match the source
# which can cause confusion when using GDB.
# The higher optimization levels are recommended when benchmarking code
#OPTIMIZATION    = -g -O2 -msparclite -msoft-float
OPTIMIZATION    = -g -O2
CCFLAGS = -g -O0 -c

# Additional special compiler flags 
PROGFLAGS               =       


# The following include statement includes standard SPARClite evaluation
# board make rules for application programs.  These standard rules use
# the variables defined above to provide some custom control of the
# specifics of the building of this application program.        

# If more exetensive customization is desired, the include statement may
# be substituted with the statements of the included file which may be
# modified as desired.


#include $(SLITELIB)/host.mak
include $(SLITELIB)/slite.mak
