source: rtems/cpukit/itron/Makefile.am @ 13482e5d

4.104.114.84.95
Last change on this file since 13482e5d was 13482e5d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 8, 2003 at 1:46:51 PM

2003-07-08 Ralf Corsepius <corsepiu@…>

  • configure.ac: Remove (Merged-in into ../configure.ac)
  • Makefile.am: Reflect having merged configure.ac into ../configure.ac.
  • src/config.h: New.
  • Property mode set to 100644
File size: 4.9 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7include $(top_srcdir)/automake/lib.am
8
9EXTRA_DIST =
10
11$(PROJECT_INCLUDE):
12        @$(mkinstalldirs) $@
13$(PROJECT_INCLUDE)/itronsys:
14        @$(mkinstalldirs) $@
15$(PROJECT_INCLUDE)/rtems/itron:
16        @$(mkinstalldirs) $@
17
18$(PROJECT_INCLUDE)/%.h: include/%.h
19        $(INSTALL_DATA) $< $@
20$(PROJECT_INCLUDE)/%.inl: $(INLINEdir)/%.inl
21        $(INSTALL_DATA) $< $@
22
23if HAS_ITRON
24## include
25
26noinst_HEADERS =
27noinst_HEADERS += src/config.h
28
29include_HEADERS = include/itron.h
30
31PREINSTALL_FILES = $(PROJECT_INCLUDE)
32PREINSTALL_FILES += $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
33
34## itronsys
35
36include_itronsysdir = $(includedir)/itronsys
37
38include_itronsys_HEADERS = include/itronsys/eventflags.h include/itronsys/fmempool.h \
39    include/itronsys/intr.h include/itronsys/mbox.h include/itronsys/msgbuffer.h include/itronsys/network.h \
40    include/itronsys/port.h include/itronsys/semaphore.h include/itronsys/status.h include/itronsys/sysmgmt.h \
41    include/itronsys/task.h include/itronsys/time.h include/itronsys/types.h include/itronsys/vmempool.h
42
43PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys \
44    $(include_itronsys_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
45
46EXTRA_DIST += include/itronsys/README
47
48## rtems/itron
49include_rtems_itrondir = $(includedir)/rtems/itron
50
51include_rtems_itron_HEADERS = include/rtems/itron/config.h include/rtems/itron/eventflags.h \
52    include/rtems/itron/fmempool.h include/rtems/itron/intr.h include/rtems/itron/itronapi.h \
53    include/rtems/itron/mbox.h include/rtems/itron/msgbuffer.h include/rtems/itron/network.h \
54    include/rtems/itron/object.h include/rtems/itron/port.h include/rtems/itron/semaphore.h \
55    include/rtems/itron/sysmgmt.h include/rtems/itron/task.h include/rtems/itron/time.h \
56    include/rtems/itron/vmempool.h
57
58PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron \
59    $(include_rtems_itron_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
60
61EXTRA_DIST += include/rtems/itron/README
62
63## Inline
64
65inline_H_FILES = inline/rtems/itron/eventflags.inl \
66    inline/rtems/itron/fmempool.inl inline/rtems/itron/intr.inl inline/rtems/itron/mbox.inl \
67    inline/rtems/itron/msgbuffer.inl inline/rtems/itron/network.inl inline/rtems/itron/port.inl \
68    inline/rtems/itron/semaphore.inl inline/rtems/itron/sysmgmt.inl inline/rtems/itron/task.inl \
69    inline/rtems/itron/time.inl inline/rtems/itron/vmempool.inl
70noinst_HEADERS += $(inline_H_FILES)
71
72if INLINE
73PREINSTALL_FILES += $(inline_H_FILES:inline/%=$(PROJECT_INCLUDE)/%)
74include_rtems_itron_HEADERS += $(inline_H_FILES)
75endif
76
77## Macros
78
79macros_H_FILES = macros/rtems/itron/eventflags.inl \
80    macros/rtems/itron/fmempool.inl macros/rtems/itron/intr.inl macros/rtems/itron/mbox.inl \
81    macros/rtems/itron/msgbuffer.inl macros/rtems/itron/network.inl macros/rtems/itron/port.inl \
82    macros/rtems/itron/semaphore.inl macros/rtems/itron/sysmgmt.inl macros/rtems/itron/task.inl \
83    macros/rtems/itron/time.inl macros/rtems/itron/vmempool.inl
84noinst_HEADERS += $(macros_H_FILES)
85
86if MACROS
87PREINSTALL_FILES += $(macros_H_FILES:macros/%=$(PROJECT_INCLUDE)/%)
88include_rtems_itron_HEADERS += $(macros_H_FILES)
89endif
90
91## Sources
92
93LIB=$(ARCH)/libitron.a
94
95TASK_C_FILES = src/task.c src/cre_tsk.c src/del_tsk.c src/sta_tsk.c src/ext_tsk.c src/exd_tsk.c \
96    src/ter_tsk.c src/dis_dsp.c src/ena_dsp.c src/chg_pri.c src/rot_rdq.c src/rel_wai.c src/get_tid.c \
97    src/ref_tsk.c
98
99TASKSYNC_C_FILES = src/sus_tsk.c src/rsm_tsk.c src/frsm_tsk.c src/slp_tsk.c src/tslp_tsk.c \
100    src/wup_tsk.c src/can_wup.c
101
102SEMAPHORE_C_FILES = src/itronsem.c src/cre_sem.c src/del_sem.c src/preq_sem.c src/ref_sem.c \
103    src/sig_sem.c src/twai_sem.c src/wai_sem.c
104
105EVENTFLAGS_C_FILES = src/eventflags.c
106
107MAILBOX_C_FILES = src/mbox.c
108
109MSGBUFFER_C_FILES = src/msgbuffer.c src/msgbuffertranslatereturncode.c src/cre_mbf.c \
110    src/del_mbf.c src/prcv_mbf.c src/psnd_mbf.c src/rcv_mbf.c src/ref_mbf.c src/snd_mbf.c src/trcv_mbf.c \
111    src/tsnd_mbf.c
112
113RENDEZVOUS_C_FILES = src/port.c
114
115INTERRUPT_C_FILES = src/itronintr.c
116
117VARIABLE_MEMORY_POOL_C_FILES = src/vmempool.c
118
119FIXED_MEMORY_POOL_C_FILES = src/fmempool.c
120
121TIME_C_FILES = src/itrontime.c
122
123CONFIGURATION_C_FILES = src/sysmgmt.c
124
125NETWORK_C_FILES = src/network.c
126
127C_FILES = $(TASK_C_FILES) $(TASKSYNC_C_FILES) $(SEMAPHORE_C_FILES) \
128    $(EVENTFLAGS_C_FILES) $(MAILBOX_C_FILES) $(MSGBUFFER_C_FILES) \
129    $(RENDEZVOUS_C_FILES) $(INTERRUPT_C_FILES) \
130    $(VARIABLE_MEMORY_POOL_C_FILES) $(FIXED_MEMORY_POOL_C_FILES) \
131    $(TIME_C_FILES)
132OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
133
134AM_CPPFLAGS += -I$(srcdir)/src  -D__RTEMS_INSIDE__
135
136all-local: $(PREINSTALL_FILES) ${ARCH} ${LIB}
137
138$(LIB): ${OBJS}
139        $(make-library)
140endif
141
142${ARCH}/%.$(OBJEXT): src/%.c
143        ${COMPILE} -o $@ -c $<
144
145UNUSED_C_FILES = src/cre_mbx.c src/del_mbx.c src/mboxtranslatereturncode.c src/network.c \
146    src/prcv_mbx.c src/rcv_mbx.c src/ref_mbx.c src/snd_mbx.c src/sysmgmt.c src/trcv_mbx.c
147
148EXTRA_DIST += $(C_FILES) $(UNUSED_C_FILES) src/TODO
149
150include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.