1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | AUTOMAKE_OPTIONS = foreign 1.5 |
---|
6 | |
---|
7 | $(PROJECT_INCLUDE)/%.h: %.h |
---|
8 | $(INSTALL_DATA) $< $@ |
---|
9 | |
---|
10 | include_HEADERS = rtems.h |
---|
11 | |
---|
12 | $(PROJECT_INCLUDE): |
---|
13 | @$(mkinstalldirs) $@ |
---|
14 | |
---|
15 | PREINSTALL_FILES = $(PROJECT_INCLUDE) \ |
---|
16 | $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
17 | |
---|
18 | include_rtems_rtemsdir = $(includedir)/rtems/rtems |
---|
19 | |
---|
20 | $(PROJECT_INCLUDE)/rtems/rtems: |
---|
21 | @$(mkinstalldirs) $@ |
---|
22 | |
---|
23 | ## We only build multiprocessing related files if HAS_MP was defined |
---|
24 | MP_H_FILES = rtems/rtems/eventmp.h rtems/rtems/mp.h rtems/rtems/msgmp.h \ |
---|
25 | rtems/rtems/partmp.h rtems/rtems/regionmp.h rtems/rtems/semmp.h \ |
---|
26 | rtems/rtems/signalmp.h rtems/rtems/taskmp.h |
---|
27 | |
---|
28 | STD_H_FILES = rtems/rtems/asr.h rtems/rtems/attr.h rtems/rtems/cache.h \ |
---|
29 | rtems/rtems/clock.h rtems/rtems/config.h rtems/rtems/dpmem.h \ |
---|
30 | rtems/rtems/event.h rtems/rtems/eventset.h rtems/rtems/intr.h \ |
---|
31 | rtems/rtems/message.h rtems/rtems/modes.h rtems/rtems/options.h \ |
---|
32 | rtems/rtems/part.h rtems/rtems/ratemon.h rtems/rtems/region.h \ |
---|
33 | rtems/rtems/rtemsapi.h rtems/rtems/sem.h rtems/rtems/signal.h \ |
---|
34 | rtems/rtems/status.h rtems/rtems/support.h rtems/rtems/tasks.h \ |
---|
35 | rtems/rtems/timer.h rtems/rtems/types.h |
---|
36 | |
---|
37 | if HAS_MP |
---|
38 | include_rtems_rtems_HEADERS = $(STD_H_FILES) $(MP_H_FILES) |
---|
39 | else |
---|
40 | include_rtems_rtems_HEADERS = $(STD_H_FILES) |
---|
41 | endif |
---|
42 | |
---|
43 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems \ |
---|
44 | $(include_rtems_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
45 | |
---|
46 | all-local: $(PREINSTALL_FILES) |
---|
47 | |
---|
48 | include $(top_srcdir)/../../../automake/local.am |
---|