1 |
1026 |
ivang |
##
|
2 |
|
|
## Makefile.am,v 1.15 2002/08/01 12:00:31 ralf Exp
|
3 |
|
|
##
|
4 |
|
|
|
5 |
|
|
LIB = $(ARCH)/librtems.a
|
6 |
|
|
|
7 |
|
|
include $(top_srcdir)/automake/multilib.am
|
8 |
|
|
include $(top_srcdir)/automake/compile.am
|
9 |
|
|
include $(top_srcdir)/automake/lib.am
|
10 |
|
|
|
11 |
|
|
# We only build multiprocessing related files if HAS_MP was defined
|
12 |
|
|
MP_C_FILES = eventmp.c mp.c msgmp.c partmp.c regionmp.c semmp.c signalmp.c \
|
13 |
|
|
taskmp.c
|
14 |
|
|
|
15 |
|
|
TASK_C_FILES = tasks.c taskcreate.c taskdelete.c taskgetnote.c taskident.c \
|
16 |
|
|
taskinitusers.c taskissuspended.c taskmode.c taskrestart.c taskresume.c \
|
17 |
|
|
tasksetnote.c tasksetpriority.c taskstart.c tasksuspend.c \
|
18 |
|
|
taskwakeafter.c taskwakewhen.c taskvariableadd.c taskvariabledelete.c \
|
19 |
|
|
taskvariableget.c
|
20 |
|
|
|
21 |
|
|
RATEMON_C_FILES = ratemon.c ratemoncancel.c ratemoncreate.c ratemondelete.c \
|
22 |
|
|
ratemongetstatus.c ratemonident.c ratemonperiod.c ratemontimeout.c
|
23 |
|
|
|
24 |
|
|
INTR_C_FILES = intr.c intrbody.c intrcatch.c
|
25 |
|
|
|
26 |
|
|
CLOCK_C_FILES = rtclock.c clockget.c clockset.c clocktick.c
|
27 |
|
|
|
28 |
|
|
TIMER_C_FILES = rtemstimer.c timercancel.c timercreate.c timerdelete.c \
|
29 |
|
|
timerfireafter.c timerfirewhen.c timergetinfo.c timerident.c timerreset.c \
|
30 |
|
|
timerserver.c timerserverfireafter.c timerserverfirewhen.c
|
31 |
|
|
|
32 |
|
|
MESSAGE_QUEUE_C_FILES = msg.c msgqallocate.c msgqbroadcast.c msgqcreate.c \
|
33 |
|
|
msgqdelete.c msgqflush.c msgqgetnumberpending.c msgqident.c \
|
34 |
|
|
msgqreceive.c msgqsend.c msgqsubmit.c msgqtranslatereturncode.c \
|
35 |
|
|
msgqurgent.c
|
36 |
|
|
|
37 |
|
|
SEMAPHORE_C_FILES = sem.c semcreate.c semdelete.c semident.c semobtain.c \
|
38 |
|
|
semrelease.c semflush.c semtranslatereturncode.c
|
39 |
|
|
|
40 |
|
|
EVENT_C_FILES = event.c eventreceive.c eventseize.c eventsend.c \
|
41 |
|
|
eventsurrender.c eventtimeout.c
|
42 |
|
|
|
43 |
|
|
SIGNAL_C_FILES = signal.c signalcatch.c signalsend.c
|
44 |
|
|
|
45 |
|
|
REGION_C_FILES = region.c regioncreate.c regiondelete.c regionextend.c \
|
46 |
|
|
regiongetsegment.c regiongetsegmentsize.c regionident.c \
|
47 |
|
|
regionreturnsegment.c regiongetinfo.c
|
48 |
|
|
|
49 |
|
|
PARTITION_C_FILES = part.c partcreate.c partdelete.c partgetbuffer.c \
|
50 |
|
|
partident.c partreturnbuffer.c
|
51 |
|
|
|
52 |
|
|
DPMEM_C_FILES = dpmem.c dpmemcreate.c dpmemdelete.c dpmemexternal2internal.c \
|
53 |
|
|
dpmemident.c dpmeminternal2external.c
|
54 |
|
|
|
55 |
|
|
STD_C_FILES = attr.c $(TASK_C_FILES) $(RATEMON_C_FILES) $(INTR_C_FILES) \
|
56 |
|
|
$(CLOCK_C_FILES) $(TIMER_C_FILES) $(SEMAPHORE_C_FILES) \
|
57 |
|
|
$(MESSAGE_QUEUE_C_FILES) $(EVENT_C_FILES) $(SIGNAL_C_FILES) \
|
58 |
|
|
$(PARTITION_C_FILES) $(REGION_C_FILES) $(DPMEM_C_FILES)
|
59 |
|
|
|
60 |
|
|
if HAS_MP
|
61 |
|
|
C_FILES = $(STD_C_FILES) $(MP_C_FILES)
|
62 |
|
|
else
|
63 |
|
|
C_FILES = $(STD_C_FILES)
|
64 |
|
|
endif
|
65 |
|
|
|
66 |
|
|
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
|
67 |
|
|
|
68 |
|
|
OBJS = $(C_O_FILES)
|
69 |
|
|
|
70 |
|
|
#
|
71 |
|
|
# Add local stuff here using +=
|
72 |
|
|
#
|
73 |
|
|
|
74 |
|
|
AM_CPPFLAGS += -D__RTEMS_INSIDE__
|
75 |
|
|
|
76 |
|
|
all-local: ${ARCH} $(LIB)
|
77 |
|
|
|
78 |
|
|
$(LIB): ${OBJS}
|
79 |
|
|
$(make-library)
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
EXTRA_DIST = $(STD_C_FILES) $(MP_C_FILES)
|
83 |
|
|
|
84 |
|
|
include $(top_srcdir)/automake/local.am
|