summaryrefslogtreecommitdiffstats
path: root/c/src/exec/wrapup/itron/Makefile.am
blob: e57cf40270af15fe8342cef5bc09b9eacce4519c (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
##
##  $Id$
##

AUTOMAKE_OPTIONS = foreign 1.4

if HAS_ITRON
LIBNAME = libitron
LIB = $(ARCH)/$(LIBNAME).a
endif

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../automake/compile.am
include $(top_srcdir)/../../../automake/lib.am

if HAS_ITRON

ITRON_OBJS = $(wildcard ../../itron/src/$(ARCH)/*.o)

OBJS = $(ITRON_OBJS)

$(LIB): ${OBJS}
	$(make-library)

ITRON_LIB = $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a

$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
	$(INSTALL_DATA) $< $@

all-local: ${ARCH} $(LIB) $(TMPINSTALL_FILES)

endif

TMPINSTALL_FILES += $(ITRON_LIB)

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