[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 | |
---|
[6693a68] | 25 | THREAD_C_PIECES = thread threadchangepriority threadclearstate threadclose \ |
---|
| 26 | threadcreateidle threaddelayended threaddispatch threadevaluatemode \ |
---|
| 27 | threadget threadhandler threadidlebody threadinitialize threadloadenv \ |
---|
| 28 | threadready threadresettimeslice threadrestart threadsetpriority \ |
---|
| 29 | threadsetstate threadsettransient threadstackallocate threadstackfree \ |
---|
| 30 | threadstart threadstartmultitasking threadtickletimeslice \ |
---|
[05df0a8] | 31 | threadyieldprocessor |
---|
| 32 | |
---|
[254b4450] | 33 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
[6693a68] | 34 | C_PIECES = apiext chain coremsg coremutex coresem coretod heap interr isr \ |
---|
| 35 | object $(THREAD_C_PIECES) threadq userext watchdog wkspace \ |
---|
| 36 | $(MP_C_PIECES) |
---|
| 37 | C_FILES = $(C_PIECES:%=%.c) |
---|
| 38 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
[254b4450] | 39 | |
---|
[6693a68] | 40 | SRCS = $(C_FILES) |
---|
| 41 | OBJS = $(C_O_FILES) |
---|
[254b4450] | 42 | |
---|
| 43 | # |
---|
| 44 | # Add local stuff here using += |
---|
| 45 | # |
---|
| 46 | |
---|
[6693a68] | 47 | DEFINES += -D__RTEMS_INSIDE__ |
---|
[254b4450] | 48 | CPPFLAGS += |
---|
[6693a68] | 49 | CFLAGS += $(CFLAGS_OS_V) |
---|
[254b4450] | 50 | |
---|
| 51 | # |
---|
| 52 | # Add your list of files to delete here. The config files |
---|
| 53 | # already know how to delete some stuff, so you may want |
---|
| 54 | # to just run 'make clean' first to see what gets missed. |
---|
| 55 | # 'make clobber' already includes 'make clean' |
---|
| 56 | # |
---|
| 57 | |
---|
[6693a68] | 58 | CLEAN_ADDITIONS += |
---|
[254b4450] | 59 | CLOBBER_ADDITIONS += |
---|
| 60 | |
---|
[6693a68] | 61 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
[d8ff793] | 62 | |
---|
[08b5f55] | 63 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 64 | cd $(top_builddir) \ |
---|
| 65 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|