summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/support/old_exception_processing/Makefile.am
blob: 61b7ff11fa9476f83dd95a359de352ac1875019f (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
##
## $Id$
##

ACLOCAL_AMFLAGS = -I ../../../../../aclocal

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

EXTRA_PROGRAMS =
CLEANFILES =
noinst_DATA =

include_rtems_scoredir = $(includedir)/rtems/score
include_rtems_score_HEADERS = rtems/score/ppc_offs.h

AM_CPPFLAGS += -I$(srcdir)

EXTRA_DIST = TODO irq_stub.S ppccache.c

EXTRA_PROGRAMS += rtems-cpu.rel
CLEANFILES += rtems-cpu.rel
rtems_cpu_rel_SOURCES = cpu.c cpu_asm.S rtems/score/ppc_offs.h
rtems_cpu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
rtems_cpu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

EXTRA_PROGRAMS += rtems-cpu_g.rel
CLEANFILES += rtems-cpu_g.rel
rtems_cpu_g_rel_SOURCES = $(rtems_cpu_rel_SOURCES)
rtems_cpu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
rtems_cpu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

noinst_DATA += rtems-cpu$(LIB_VARIANT).rel

PREINSTALL_DIRS =
PREINSTALL_FILES =

$(PROJECT_INCLUDE)/rtems/score/$(dirstamp):
	@$(mkdir_p) $(PROJECT_INCLUDE)/rtems/score
	@: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)

$(PROJECT_INCLUDE)/rtems/score/ppc_offs.h: rtems/score/ppc_offs.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ppc_offs.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ppc_offs.h

CLEANFILES += $(PREINSTALL_FILES)
DISTCLEANFILES = $(PREINSTALL_DIRS)

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