##########################################################
#
# General makefile for building the uCOS II library
#
# The library contains the uCOS II 2.52 code
# and the arm-gcc CPU port.
#
# (C) 2006 Rob Jansen (rob@myvoice.nl)
#
##########################################################

# Name of target (executable program or library) 
NAME      = lib_ucos-ii-2.52

# Name specific CPU module used
# Valid CPU Modules are: QSB2138, QSB2148
#
# If you have a new version not specified above, create a new CPU module by specifying
# its name in startup/config.h and create an include file for that module.
CPU_MODULE = QSB2138

PORT=arm-gcc-nested
BSP=bsp

# ELF-file contains debug information, or not
# (possible values for DEBUG are 0 or 1)
# Extra debug flags can be specified in DBFLAGS

DEBUG   = 1
#DBFLAGS =

# Optimization setting
# (-Os for small code size, -O2 for speed)
OFLAGS  = -Os

# Extra general flags
# For example, compile for ARM / THUMB interworking (EFLAGS = -mthumb-interwork)
EFLAGS  =
# Program code run in ARM or THUMB mode
# Can be [ARM | THUMB]
CODE    = ARM

#
# Source files.
#
# All uCOS II code is collected in ucos_ii.c,
# the os_cpu files contain the arm-gcc-nested port for uCOS II
#

# List C source files here.
CSRCS   = ucos_ii.c $(PORT)/os_cpu_c.c $(BSP)/bsp.c $(BSP)/serial.c $(BSP)/ring_buffer.c

# List assembler source files here
ASRCS   = $(PORT)/os_cpu_a.S

# List subdirectories to recursively invoke make in 
SUBDIRS =

# List additional libraries to link with
LIBS    =

# Add include search paths
INC     = -I . -I $(BSP) -I $(PORT) -I ../startup

# Select if an executable program or a library shall be created
LIBRARY_MK  = true

#######################################################################
include ../build_files/general.mk
#######################################################################
