1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = . |
---|
9 | |
---|
10 | ACLOCAL = aclocal |
---|
11 | AUTOCONF = autoconf |
---|
12 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
---|
13 | ACLOCAL_AMFLAGS = -I @RTEMS_TOPdir@/aclocal |
---|
14 | |
---|
15 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
16 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
17 | |
---|
18 | VPATH = @srcdir@ |
---|
19 | |
---|
20 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
21 | include $(RTEMS_ROOT)/make/directory.cfg |
---|
22 | |
---|
23 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
24 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
25 | |
---|
26 | INSTALLDIRS = $(PROJECT_ROOT)/@RTEMS_BSP@/lib |
---|
27 | |
---|
28 | $(INSTALLDIRS): |
---|
29 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
30 | |
---|
31 | # shmdr is a portable shared memory MPCI layer |
---|
32 | # We only build it if HAS_MP was defined |
---|
33 | @HAS_MP_TRUE@MP_DRIVERS = shmdr |
---|
34 | |
---|
35 | SUBDIRS = $(MP_DRIVERS) |
---|
36 | |
---|
37 | # If we are building a "real" BSP, then we need to descend into the |
---|
38 | # appropriate CPU specific directory. The bare BSP is a special |
---|
39 | # case which can be built for any CPU and it resides at the same |
---|
40 | # level as the CPUs. If we are building the bare BSP, then descend |
---|
41 | # into that directory. |
---|
42 | |
---|
43 | SUBDIRS += @RTEMS_LIBBSP_CPU_SUBDIR@ |
---|
44 | |
---|
45 | preinstall: |
---|
46 | @$(mkinstalldirs) $(PROJECT_ROOT)/@RTEMS_BSP@/lib |
---|
47 | @if test "@RTEMS_BSP@" = "bare"; then \ |
---|
48 | $(INSTALL_CHANGE) -m 644 \ |
---|
49 | $(srcdir)/bare/bsp_specs \ |
---|
50 | $(PROJECT_ROOT)/@RTEMS_BSP@/lib; \ |
---|
51 | else \ |
---|
52 | $(INSTALL_CHANGE) -m 644 \ |
---|
53 | $(srcdir)/$(RTEMS_CPU)/${RTEMS_BSP_FAMILY}/bsp_specs \ |
---|
54 | $(PROJECT_ROOT)/@RTEMS_BSP@/lib; \ |
---|
55 | fi |
---|
56 | |
---|
57 | # HACK: Don't let them fail here |
---|
58 | dist: |
---|
59 | distdir: |
---|
60 | |
---|
61 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
62 | cd $(top_builddir) \ |
---|
63 | && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|
64 | |
---|
65 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in |
---|
66 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
---|
67 | |
---|
68 | config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
---|
69 | $(SHELL) ./config.status --recheck |
---|
70 | $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) |
---|
71 | cd $(srcdir) && $(AUTOCONF) |
---|