summaryrefslogtreecommitdiffstats
path: root/c/src/lib/Makefile.in
blob: 9ef58e676910af546bad464af15784b54dcb45c2 (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
52
53
54
55
56
57
#
#  $Id$
#

@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = .

ACLOCAL = aclocal
AUTOCONF = autoconf
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
ACLOCAL_AMFLAGS = -I @RTEMS_TOPdir@/aclocal

RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@

VPATH = @srcdir@

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(RTEMS_ROOT)/make/directory.cfg

INSTALL_CHANGE = @INSTALL_CHANGE@

# We only build the networking library if HAS_NETWORKING was defined
LIBNETWORKING_yes_V = libnetworking
LIBNETWORKING = $(LIBNETWORKING_$(HAS_NETWORKING)_V)

# We only build the rpc library if HAS_NETWORKING was defined
LIBRPC_yes_V = librpc
LIBRPC = $(LIBRPC_$(HAS_NETWORKING)_V)

# We only build the rdbg library if HAS_NETWORKING and HAS_RDBG was defined
LIBRDBG_yes_yes_V = librdbg
LIBRDBG = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V)

# General Hardware API library 
LIBHWAPI = $(wildcard libhwapi)

@UNIX_FALSE@LIBCHIP = libchip

SUB_DIRS = start include libmisc libc $(LIBNETWORKING) libcpu libbsp \
    $(LIBRPC) $(LIBRDBG) $(LIBCHIP) $(LIBHWAPI) $(LIBRTEMSCPLUSPLUS) wrapup

CLOBBER_ADDITIONS += config.log config.cache

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) \
	 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	$(SHELL) ./config.status --recheck
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4)
	cd $(srcdir) && $(AUTOCONF)