1 |
1026 |
ivang |
##
|
2 |
|
|
## Makefile.am,v 1.16 2002/07/31 15:01:48 ralf Exp
|
3 |
|
|
##
|
4 |
|
|
|
5 |
|
|
LIB=$(ARCH)/libscore.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 = mpci.c objectmp.c threadmp.c
|
13 |
|
|
|
14 |
|
|
CORE_MESSAGE_QUEUE_C_FILES = coremsg.c coremsgbroadcast.c coremsgclose.c \
|
15 |
|
|
coremsgflush.c coremsgflushwait.c coremsginsert.c coremsgflushsupp.c \
|
16 |
|
|
coremsgseize.c coremsgsubmit.c
|
17 |
|
|
|
18 |
|
|
CORE_MUTEX_C_FILES = coremutex.c coremutexflush.c coremutexseize.c \
|
19 |
|
|
coremutexsurrender.c
|
20 |
|
|
|
21 |
|
|
CORE_SEMAPHORE_C_FILES = coresem.c coresemflush.c coresemseize.c \
|
22 |
|
|
coresemsurrender.c
|
23 |
|
|
|
24 |
|
|
HEAP_C_FILES = heap.c heapallocate.c heapextend.c heapfree.c \
|
25 |
|
|
heapsizeofuserarea.c heapwalk.c heapgetinfo.c
|
26 |
|
|
|
27 |
|
|
OBJECT_C_FILES = object.c objectallocate.c objectallocatebyindex.c \
|
28 |
|
|
objectclearname.c objectcomparenameraw.c objectcomparenamestring.c \
|
29 |
|
|
objectcopynameraw.c objectcopynamestring.c objectextendinformation.c \
|
30 |
|
|
objectfree.c objectget.c objectgetisr.c objectgetbyindex.c \
|
31 |
|
|
objectgetnext.c objectinitializeinformation.c objectnametoid.c \
|
32 |
|
|
objectshrinkinformation.c objectgetnoprotection.c
|
33 |
|
|
|
34 |
|
|
THREAD_C_FILES = thread.c threadchangepriority.c threadclearstate.c \
|
35 |
|
|
threadclose.c threadcreateidle.c threaddelayended.c threaddispatch.c \
|
36 |
|
|
threadevaluatemode.c threadget.c threadhandler.c threadidlebody.c \
|
37 |
|
|
threadinitialize.c threadloadenv.c threadready.c threadresettimeslice.c \
|
38 |
|
|
threadreset.c threadrestart.c threadresume.c threadrotatequeue.c \
|
39 |
|
|
threadsetpriority.c threadsetstate.c threadsettransient.c \
|
40 |
|
|
threadstackallocate.c threadstackfree.c threadstart.c \
|
41 |
|
|
threadstartmultitasking.c threadsuspend.c threadtickletimeslice.c \
|
42 |
|
|
threadyieldprocessor.c
|
43 |
|
|
|
44 |
|
|
THREADQ_C_FILES = threadq.c threadqdequeue.c threadqdequeuefifo.c \
|
45 |
|
|
threadqdequeuepriority.c threadqenqueue.c threadqenqueuefifo.c \
|
46 |
|
|
threadqenqueuepriority.c threadqextract.c threadqextractfifo.c \
|
47 |
|
|
threadqextractpriority.c threadqextractwithproxy.c threadqfirst.c \
|
48 |
|
|
threadqfirstfifo.c threadqfirstpriority.c threadqflush.c threadqtimeout.c
|
49 |
|
|
|
50 |
|
|
TOD_C_FILES = coretod.c coretodset.c coretodtickle.c coretodtoseconds.c \
|
51 |
|
|
coretodvalidate.c
|
52 |
|
|
|
53 |
|
|
WATCHDOG_C_FILES = watchdog.c watchdogadjust.c watchdoginsert.c \
|
54 |
|
|
watchdogremove.c watchdogtickle.c
|
55 |
|
|
|
56 |
|
|
STD_C_FILES = apiext.c chain.c $(CORE_MESSAGE_QUEUE_C_FILES) \
|
57 |
|
|
$(CORE_MUTEX_C_FILES) $(CORE_SEMAPHORE_C_FILES) $(HEAP_C_FILES) interr.c \
|
58 |
|
|
isr.c $(OBJECT_C_FILES) $(THREAD_C_FILES) $(THREADQ_C_FILES) \
|
59 |
|
|
$(TOD_C_FILES) userext.c $(WATCHDOG_C_FILES) wkspace.c
|
60 |
|
|
|
61 |
|
|
if HAS_MP
|
62 |
|
|
C_FILES = $(STD_C_FILES) $(MP_C_FILES)
|
63 |
|
|
else
|
64 |
|
|
C_FILES = $(STD_C_FILES)
|
65 |
|
|
endif
|
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 |
|
|
EXTRA_DIST = $(STD_C_FILES) $(MP_C_FILES) Unlimited.txt
|
82 |
|
|
|
83 |
|
|
include $(top_srcdir)/automake/local.am
|