summaryrefslogtreecommitdiffstats
path: root/c/src/exec/sapi/include/Makefile.am
blob: 94f394bb141651c581aebf7e7a0da10dd1d0bb6a (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
##
## $Id$
##


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

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

include_HEADERS = confdefs.h

PREINSTALL_FILES = $(PROJECT_INCLUDE) \
    $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)

include_rtemsdir = $(includedir)/rtems

include_rtems_HEADERS = rtems/config.h rtems/directives.h rtems/extension.h \
    rtems/fatal.h rtems/init.h rtems/io.h rtems/mptables.h rtems/sptables.h

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

EXTRA_DIST = rtems/README

rtems/sptables.h: $(top_builddir)/config.status $(top_srcdir)/sapi/include/rtems/sptables.h.in
	cd $(top_builddir) && CONFIG_FILES=sapi/include/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status

all-local: $(PREINSTALL_FILES)

include $(top_srcdir)/../../../automake/local.am