source: rtems/cpukit/itron/Makefile.am @ 99db5e9

4.104.114.84.95
Last change on this file since 99db5e9 was 99db5e9, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 9, 2002 at 5:33:57 AM

2002-12-09 Ralf Corsepius <corsepiu@…>

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