blob: 28ad2ef6a3cf5a3a9817788b749ca70129cde745 (
plain) (
tree)
|
|
#
# $Id$
#
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../..
subdir = score/src
RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@
VPATH = @srcdir@
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(RTEMS_ROOT)/make/lib.cfg
INSTALL_CHANGE = @INSTALL_CHANGE@
# We only build multiprocessing related files if HAS_MP was defined
MP_C_PIECES_yes_V = mpci objectmp threadmp
MP_C_PIECES = $(MP_C_PIECES_$(HAS_MP)_V)
CORE_MESSAGE_QUEUE_C_PIECES= coremsg coremsgbroadcast coremsgclose \
coremsgflush coremsgflushsupp coremsgseize coremsgsubmit
CORE_MUTEX_C_PIECES= coremutex coremutexflush coremutexseize \
coremutexsurrender
CORE_SEMAPHORE_C_PIECES= coresem coresemflush coresemseize coresemsurrender
HEAP_C_PIECES = heap heapallocate heapextend heapfree \
heapsizeofuserarea heapwalk
OBJECT_C_PIECES = object objectallocate objectallocatebyindex \
objectclearname objectcomparenameraw objectcomparenamestring \
objectcopynameraw objectcopynamestring objectextendinformation \
objectfree objectget objectgetbyindex objectgetnext \
objectinitializeinformation objectnametoid objectshrinkinformation
THREAD_C_PIECES = thread threadchangepriority threadclearstate threadclose \
threadcreateidle threaddelayended threaddispatch threadevaluatemode \
threadget threadhandler threadidlebody threadinitialize threadloadenv \
threadready threadresettimeslice threadrestart threadsetpriority \
threadsetstate threadsettransient threadstackallocate threadstackfree \
threadstart threadstartmultitasking threadtickletimeslice \
threadyieldprocessor
THREADQ_C_PIECES= threadq threadqdequeue threadqdequeuefifo \
threadqdequeuepriority threadqenqueue threadqenqueuefifo \
threadqenqueuepriority threadqextract threadqextractfifo \
threadqextractpriority threadqextractwithproxy threadqfirst \
threadqfirstfifo threadqfirstpriority threadqflush threadqtimeout
TOD_C_PIECES= coretod coretodset coretodtickle coretodtoseconds \
coretodvalidate
WATCHDOG_C_PIECES= watchdog watchdogadjust watchdoginsert watchdogremove \
watchdogtickle
# C and C++ source names, if any, go here -- minus the .c or .cc
C_PIECES = apiext chain $(CORE_MESSAGE_QUEUE_C_PIECES) $(CORE_MUTEX_C_PIECES) \
$(CORE_SEMAPHORE_C_PIECES) $(HEAP_C_PIECES) interr isr \
$(OBJECT_C_PIECES) $(THREAD_C_PIECES) $(THREADQ_C_PIECES) \
$(TOD_C_PIECES) userext \
$(WATCHDOG_C_PIECES) wkspace $(MP_C_PIECES)
C_FILES = $(C_PIECES:%=%.c)
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
SRCS = $(C_FILES)
OBJS = $(C_O_FILES)
#
# Add local stuff here using +=
#
DEFINES += -D__RTEMS_INSIDE__
CPPFLAGS +=
CFLAGS += $(CFLAGS_OS_V)
#
# Add your list of files to delete here. The config files
# already know how to delete some stuff, so you may want
# to just run 'make clean' first to see what gets missed.
# 'make clobber' already includes 'make clean'
#
CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=
all: ${ARCH} $(SRCS) ${OBJS}
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|