summaryrefslogtreecommitdiffstats
path: root/cpukit/Makefile.am
blob: 9512ddda6d828c2efca96be119d442e3ffe4a958 (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
##
## $Id$
##

ACLOCAL_AMFLAGS = -I aclocal

include $(top_srcdir)/automake/multilib.am

SUBDIRS = . ada score rtems sapi posix itron
SUBDIRS += libcsupport libblock libfs
SUBDIRS += libnetworking librpc
SUBDIRS += libmisc
SUBDIRS += wrapup

noinst_DATA = preinstall-stamp

preinstall-stamp:
	$(MAKE) $(AM_MAKEFLAGS) preinstall
	touch preinstall-stamp
CLEANFILES = preinstall-stamp

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

$(PROJECT_INCLUDE):
	@$(mkinstalldirs) $@

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

PREINSTALL_FILES = $(PROJECT_INCLUDE)

include_rtemsdir = $(includedir)/rtems
include_rtems_HEADERS = include/rtems/bspIo.h include/rtems/userenv.h \
  include/rtems/fs.h include/rtems/stdint.h

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

all-local: $(PREINSTALL_FILES)

AUTOMAKE_FILES = automake/compile.am automake/lib.am automake/local.am \
    automake/multilib.am automake/subdirs.am
EXTRA_DIST = $(AUTOMAKE_FILES)

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