summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/Makefile.am
blob: afd37e34f3892a95c0b05af56d62832200a2209f (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$
##


$(PROJECT_INCLUDE)/%: %
	$(INSTALL_DATA) $< $@

include_rtemsdir = $(includedir)/rtems

$(PROJECT_INCLUDE)/rtems:
	@$(mkinstalldirs) $@

include_rtems_HEADERS = rtems/debug.h rtems/system.h rtems/seterr.h

PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \
    $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%)

include_rtems_scoredir = $(includedir)/rtems/score

$(PROJECT_INCLUDE)/rtems/score:
	@$(mkinstalldirs) $@

# We only build multiprocessing related files if HAS_MP was defined
MP_H_FILES = rtems/score/mpci.h rtems/score/mppkt.h rtems/score/objectmp.h \
    rtems/score/threadmp.h

# H_FILES that get installed in the rtems/score subdirectoy
STD_H_FILES = rtems/score/address.h rtems/score/apiext.h \
    rtems/score/apimutex.h \
    rtems/score/bitfield.h rtems/score/chain.h rtems/score/context.h \
    rtems/score/copyrt.h rtems/score/coremsg.h rtems/score/coremutex.h \
    rtems/score/coresem.h rtems/score/heap.h rtems/score/interr.h \
    rtems/score/isr.h rtems/score/object.h rtems/score/priority.h \
    rtems/score/stack.h rtems/score/states.h rtems/score/sysstate.h \
    rtems/score/thread.h rtems/score/threadq.h rtems/score/tod.h \
    rtems/score/tqdata.h rtems/score/userext.h rtems/score/watchdog.h \
    rtems/score/wkspace.h

if HAS_MP
include_rtems_score_HEADERS = $(STD_H_FILES) $(MP_H_FILES) rtems/score/cpuopts.h
else
include_rtems_score_HEADERS = $(STD_H_FILES) rtems/score/cpuopts.h
endif

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \
    $(include_rtems_score_HEADERS:%=$(PROJECT_INCLUDE)/%)

all-local: $(PREINSTALL_FILES)

include $(top_srcdir)/automake/local.am