[254b4450] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[d8ff793] | 7 | top_srcdir = @top_srcdir@ |
---|
[6693a68] | 8 | top_builddir = ../.. |
---|
| 9 | subdir = score/src |
---|
[254b4450] | 10 | |
---|
[6693a68] | 11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[d8ff793] | 12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 13 | |
---|
| 14 | VPATH = @srcdir@ |
---|
| 15 | |
---|
[1896a650] | 16 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
| 17 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
| 18 | |
---|
| 19 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 20 | |
---|
[97e2729d] | 21 | # We only build multiprocessing related files if HAS_MP was defined |
---|
[6693a68] | 22 | MP_C_PIECES_yes_V = mpci objectmp threadmp |
---|
| 23 | MP_C_PIECES = $(MP_C_PIECES_$(HAS_MP)_V) |
---|
[97e2729d] | 24 | |
---|
[82cb78d8] | 25 | CORE_MESSAGE_QUEUE_C_PIECES= coremsg coremsgbroadcast coremsgclose \ |
---|
| 26 | coremsgflush coremsgflushsupp coremsgseize coremsgsubmit |
---|
| 27 | |
---|
| 28 | CORE_MUTEX_C_PIECES= coremutex coremutexflush coremutexseize \ |
---|
| 29 | coremutexsurrender |
---|
| 30 | |
---|
| 31 | CORE_SEMAPHORE_C_PIECES= coresem coresemflush coresemseize coresemsurrender |
---|
| 32 | |
---|
[93b4e6ef] | 33 | HEAP_C_PIECES = heap heapallocate heapextend heapfree \ |
---|
| 34 | heapsizeofuserarea heapwalk |
---|
| 35 | |
---|
[317a5b5] | 36 | OBJECT_C_PIECES = object objectallocate objectallocatebyindex \ |
---|
| 37 | objectclearname objectcomparenameraw objectcomparenamestring \ |
---|
| 38 | objectcopynameraw objectcopynamestring objectextendinformation \ |
---|
| 39 | objectfree objectget objectgetbyindex objectgetnext \ |
---|
| 40 | objectinitializeinformation objectnametoid objectshrinkinformation |
---|
| 41 | |
---|
[6693a68] | 42 | THREAD_C_PIECES = thread threadchangepriority threadclearstate threadclose \ |
---|
| 43 | threadcreateidle threaddelayended threaddispatch threadevaluatemode \ |
---|
| 44 | threadget threadhandler threadidlebody threadinitialize threadloadenv \ |
---|
[eb02f47] | 45 | threadready threadresettimeslice threadrestart threadresume \ |
---|
| 46 | threadrotatequeue threadsetpriority threadsetstate threadsettransient \ |
---|
| 47 | threadstackallocate threadstackfree threadstart threadstartmultitasking \ |
---|
| 48 | threadsuspend threadtickletimeslice threadyieldprocessor |
---|
[05df0a8] | 49 | |
---|
[dfbfa2b0] | 50 | THREADQ_C_PIECES= threadq threadqdequeue threadqdequeuefifo \ |
---|
| 51 | threadqdequeuepriority threadqenqueue threadqenqueuefifo \ |
---|
| 52 | threadqenqueuepriority threadqextract threadqextractfifo \ |
---|
| 53 | threadqextractpriority threadqextractwithproxy threadqfirst \ |
---|
| 54 | threadqfirstfifo threadqfirstpriority threadqflush threadqtimeout |
---|
| 55 | |
---|
[93b4e6ef] | 56 | TOD_C_PIECES= coretod coretodset coretodtickle coretodtoseconds \ |
---|
| 57 | coretodvalidate |
---|
| 58 | |
---|
[82cb78d8] | 59 | WATCHDOG_C_PIECES= watchdog watchdogadjust watchdoginsert watchdogremove \ |
---|
| 60 | watchdogtickle |
---|
| 61 | |
---|
[254b4450] | 62 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
[82cb78d8] | 63 | C_PIECES = apiext chain $(CORE_MESSAGE_QUEUE_C_PIECES) $(CORE_MUTEX_C_PIECES) \ |
---|
| 64 | $(CORE_SEMAPHORE_C_PIECES) $(HEAP_C_PIECES) interr isr \ |
---|
[93b4e6ef] | 65 | $(OBJECT_C_PIECES) $(THREAD_C_PIECES) $(THREADQ_C_PIECES) \ |
---|
| 66 | $(TOD_C_PIECES) userext \ |
---|
[82cb78d8] | 67 | $(WATCHDOG_C_PIECES) wkspace $(MP_C_PIECES) |
---|
[6693a68] | 68 | C_FILES = $(C_PIECES:%=%.c) |
---|
| 69 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
[254b4450] | 70 | |
---|
[6693a68] | 71 | SRCS = $(C_FILES) |
---|
| 72 | OBJS = $(C_O_FILES) |
---|
[254b4450] | 73 | |
---|
| 74 | # |
---|
| 75 | # Add local stuff here using += |
---|
| 76 | # |
---|
| 77 | |
---|
[6693a68] | 78 | DEFINES += -D__RTEMS_INSIDE__ |
---|
[254b4450] | 79 | CPPFLAGS += |
---|
[6693a68] | 80 | CFLAGS += $(CFLAGS_OS_V) |
---|
[254b4450] | 81 | |
---|
| 82 | # |
---|
| 83 | # Add your list of files to delete here. The config files |
---|
| 84 | # already know how to delete some stuff, so you may want |
---|
| 85 | # to just run 'make clean' first to see what gets missed. |
---|
| 86 | # 'make clobber' already includes 'make clean' |
---|
| 87 | # |
---|
| 88 | |
---|
[6693a68] | 89 | CLEAN_ADDITIONS += |
---|
[254b4450] | 90 | CLOBBER_ADDITIONS += |
---|
| 91 | |
---|
[6693a68] | 92 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
[d8ff793] | 93 | |
---|
[08b5f55] | 94 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 95 | cd $(top_builddir) \ |
---|
| 96 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|