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 | TIMER_PIECES=\ |
---|
31 | timer timercancel timercreate timerdelete timerfireafter \ |
---|
32 | timerfirewhere timerident timerreset |
---|
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 | EVENT_PIECES=\ |
---|
44 | event eventreceive eventseize eventsend eventsurrender eventtimeout |
---|
45 | |
---|
46 | RATEMON_PIECES=\ |
---|
47 | ratemon ratemoncancel ratemoncreate ratemondelete ratemongetstatus \ |
---|
48 | ratemonident ratemonperiod ratemontimeout |
---|
49 | |
---|
50 | REGION_PIECES=\ |
---|
51 | region regioncreate regiondelete regionextend regiongetsegment \ |
---|
52 | regiongetsegmentsize regionident regionreturnsegemnt regionreturnsegemnt |
---|
53 | |
---|
54 | PARTITION_PIECES=\ |
---|
55 | part partcreate partdelete partgetbuffer partident partreturnbuffer |
---|
56 | |
---|
57 | C_PIECES=\ |
---|
58 | attr $(TASK_PIECES) $(RATEMON_PIECES) \ |
---|
59 | intr intrbody \ |
---|
60 | $(CLOCK_PIECES) $(TIMER_PIECES) \ |
---|
61 | $(SEMAPHORE_PIECES) $(MESSAGE_QUEUE_PIECES) \ |
---|
62 | $(EVENT_PIECES) signal |
---|
63 | $(PARTITION_PIECES) $(REGION_PIECES) dpmem \ |
---|
64 | $(MP_PIECES) |
---|
65 | C_FILES=$(C_PIECES:%=%.c) |
---|
66 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
67 | |
---|
68 | SRCS=$(C_FILES) |
---|
69 | OBJS=$(C_O_FILES) |
---|
70 | |
---|
71 | include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg |
---|
72 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
73 | |
---|
74 | # |
---|
75 | # Add local stuff here using += |
---|
76 | # |
---|
77 | |
---|
78 | DEFINES += -D__RTEMS_INSIDE__ |
---|
79 | CPPFLAGS += |
---|
80 | CFLAGS += $(CFLAGS_OS_V) |
---|
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 | |
---|
89 | CLEAN_ADDITIONS += |
---|
90 | CLOBBER_ADDITIONS += |
---|
91 | |
---|
92 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
93 | |
---|
94 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
95 | cd $(top_builddir) \ |
---|
96 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|