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