1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | |
---|
6 | $(PROJECT_INCLUDE)/%: % |
---|
7 | $(INSTALL_DATA) $< $@ |
---|
8 | |
---|
9 | include_rtemsdir = $(includedir)/rtems |
---|
10 | |
---|
11 | $(PROJECT_INCLUDE)/rtems: |
---|
12 | @$(mkinstalldirs) $@ |
---|
13 | |
---|
14 | include_rtems_HEADERS = rtems/debug.h rtems/system.h rtems/seterr.h |
---|
15 | |
---|
16 | PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \ |
---|
17 | $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
18 | |
---|
19 | include_rtems_scoredir = $(includedir)/rtems/score |
---|
20 | |
---|
21 | $(PROJECT_INCLUDE)/rtems/score: |
---|
22 | @$(mkinstalldirs) $@ |
---|
23 | |
---|
24 | # We only build multiprocessing related files if HAS_MP was defined |
---|
25 | MP_H_FILES = rtems/score/mpci.h rtems/score/mppkt.h rtems/score/objectmp.h \ |
---|
26 | rtems/score/threadmp.h |
---|
27 | |
---|
28 | # H_FILES that get installed in the rtems/score subdirectoy |
---|
29 | STD_H_FILES = rtems/score/address.h rtems/score/apiext.h \ |
---|
30 | rtems/score/bitfield.h rtems/score/chain.h rtems/score/context.h \ |
---|
31 | rtems/score/copyrt.h rtems/score/coremsg.h rtems/score/coremutex.h \ |
---|
32 | rtems/score/coresem.h rtems/score/heap.h rtems/score/interr.h \ |
---|
33 | rtems/score/isr.h rtems/score/object.h rtems/score/priority.h \ |
---|
34 | rtems/score/stack.h rtems/score/states.h rtems/score/sysstate.h \ |
---|
35 | rtems/score/thread.h rtems/score/threadq.h rtems/score/tod.h \ |
---|
36 | rtems/score/tqdata.h rtems/score/userext.h rtems/score/watchdog.h \ |
---|
37 | rtems/score/wkspace.h |
---|
38 | |
---|
39 | if HAS_MP |
---|
40 | include_rtems_score_HEADERS = $(STD_H_FILES) $(MP_H_FILES) rtems/score/cpuopts.h |
---|
41 | else |
---|
42 | include_rtems_score_HEADERS = $(STD_H_FILES) rtems/score/cpuopts.h |
---|
43 | endif |
---|
44 | |
---|
45 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \ |
---|
46 | $(include_rtems_score_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
47 | |
---|
48 | # make the cpu dependent options file |
---|
49 | # FIXME: We are exporting a config-header here, which is a bad idea in |
---|
50 | # general |
---|
51 | rtems/score/cpuopts.h: rtems/score/cpuopts-tmp.h |
---|
52 | @echo "/* target cpu dependent options file */" >$@ |
---|
53 | @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@ |
---|
54 | @echo >>$@ |
---|
55 | @echo "#ifndef __CPU_OPTIONS_h" >>$@ |
---|
56 | @echo "#define __CPU_OPTIONS_h" >>$@ |
---|
57 | @echo >>$@ |
---|
58 | @cat rtems/score/cpuopts-tmp.h | sed -e '/.*PACKAGE.*/d' >>$@ |
---|
59 | @echo >>$@ |
---|
60 | @echo "#endif" >>$@ |
---|
61 | |
---|
62 | all-local: $(PREINSTALL_FILES) |
---|
63 | |
---|
64 | include $(top_srcdir)/automake/local.am |
---|