1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../../.. |
---|
9 | subdir = c/src/exec/rtems/src |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ |
---|
14 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
15 | |
---|
16 | VPATH = @srcdir@ |
---|
17 | |
---|
18 | # We only build multiprocessing related files if HAS_MP was defined |
---|
19 | MP_PIECES_yes_V = eventmp mp msgmp partmp regionmp semmp signalmp taskmp |
---|
20 | MP_PIECES = $(MP_PIECES_$(HAS_MP)_V) |
---|
21 | |
---|
22 | TASK_PIECES=\ |
---|
23 | tasks taskcreate taskdelete taskgetnote taskident taskinitusers \ |
---|
24 | taskmode taskrestart taskresume tasksetnote tasksetpriority \ |
---|
25 | taskstart tasksuspend taskwakeafter taskwakewhen |
---|
26 | |
---|
27 | CLOCK_PIECES= |
---|
28 | clock clockget clockset clocktick |
---|
29 | |
---|
30 | REGION_PIECES=\ |
---|
31 | region regioncreate regiondelete regionextend regiongetsegment \ |
---|
32 | regiongetsegmentsize regionident regionreturnsegemnt regionreturnsegemnt |
---|
33 | |
---|
34 | MESSAGE_QUEUE_PIECES=\ |
---|
35 | msg msgqallocate msgqbroadcast msgqcreate msgqdelete \ |
---|
36 | msgqflush msgqgetnumberpending msgqident msgqreceive \ |
---|
37 | msgqsend msgqsubmit msgqtranslatereturncode msgqurgent |
---|
38 | |
---|
39 | SEMAPHORE_PIECES=\ |
---|
40 | sem semcreate semdelete semident semobtain semrelease \ |
---|
41 | semtranslatereturncode |
---|
42 | |
---|
43 | C_PIECES=attr $(CLOCK_PIECES) dpmem event intr intrbody \ |
---|
44 | $(MESSAGE_QUEUE_PIECES) \ |
---|
45 | part ratemon $(REGION_PIECES) $(SEMAPHORE_PIECES) signal \ |
---|
46 | $(TASK_PIECES) timer $(MP_PIECES) |
---|
47 | C_FILES=$(C_PIECES:%=%.c) |
---|
48 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
49 | |
---|
50 | SRCS=$(C_FILES) |
---|
51 | OBJS=$(C_O_FILES) |
---|
52 | |
---|
53 | include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg |
---|
54 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
55 | |
---|
56 | # |
---|
57 | # Add local stuff here using += |
---|
58 | # |
---|
59 | |
---|
60 | DEFINES += -D__RTEMS_INSIDE__ |
---|
61 | CPPFLAGS += |
---|
62 | CFLAGS += $(CFLAGS_OS_V) |
---|
63 | |
---|
64 | # |
---|
65 | # Add your list of files to delete here. The config files |
---|
66 | # already know how to delete some stuff, so you may want |
---|
67 | # to just run 'make clean' first to see what gets missed. |
---|
68 | # 'make clobber' already includes 'make clean' |
---|
69 | # |
---|
70 | |
---|
71 | CLEAN_ADDITIONS += |
---|
72 | CLOBBER_ADDITIONS += |
---|
73 | |
---|
74 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
75 | |
---|
76 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
77 | cd $(top_builddir) \ |
---|
78 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|