1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../automake/compile.am |
---|
8 | |
---|
9 | noinst_PROGRAMS = |
---|
10 | |
---|
11 | # NOTE: shared applies to targets meant to run with supervisor privilege, |
---|
12 | # i.e. sun4u or sun4v. Any targets (e.g. simulators) that cannot emulate |
---|
13 | # supervisor privilege should use their own score and sparc64-syscall. |
---|
14 | # The other shared code is probably usable, but should be defined separately. |
---|
15 | # See the example at the end of Makefile.am. |
---|
16 | if shared |
---|
17 | include_libcpudir = $(includedir)/libcpu |
---|
18 | |
---|
19 | include_libcpu_HEADERS = ../shared/include/cache.h |
---|
20 | |
---|
21 | noinst_PROGRAMS += shared/shared-score.rel |
---|
22 | shared_shared_score_rel_SOURCES = shared/score/cpu.c shared/score/interrupt.S |
---|
23 | shared_shared_score_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
24 | shared_shared_score_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
25 | |
---|
26 | noinst_PROGRAMS += shared/sparc64-syscall.rel |
---|
27 | shared_sparc64_syscall_rel_SOURCES = shared/syscall/sparc64-syscall.S \ |
---|
28 | shared/syscall/sparc64-syscall.h |
---|
29 | shared_sparc64_syscall_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
30 | shared_sparc64_syscall_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
31 | |
---|
32 | noinst_PROGRAMS += shared/interrupts.rel |
---|
33 | shared_interrupts_rel_SOURCES = shared/interrupts/installisrentries.c |
---|
34 | shared_interrupts_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/interrupts |
---|
35 | shared_interrupts_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
36 | |
---|
37 | noinst_PROGRAMS += shared/cache.rel |
---|
38 | shared_cache_rel_SOURCES = shared/cache/cache.c shared/cache/cache_.h \ |
---|
39 | ../shared/src/cache_aligned_malloc.c ../shared/src/cache_manager.c |
---|
40 | shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache |
---|
41 | shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
42 | endif |
---|
43 | |
---|
44 | #if has_instruction_cache |
---|
45 | #cache_rel_CPPFLAGS += -DHAS_INSTRUCTION_CACHE |
---|
46 | #endif |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | ### This is an example of how to define a separate score implementation. |
---|
51 | ## NOTE: Unlike other CPUs, we install into a subdirectory to avoid |
---|
52 | ## file name conflicts (See sh CPU for simexampleilar approach) |
---|
53 | #include_sparc64dir = $(includedir)/sparc64 |
---|
54 | #include_rtems_scoredir = $(includedir)/rtems/score |
---|
55 | # |
---|
56 | #if simexample |
---|
57 | #include_sparc64_HEADERS = |
---|
58 | #include_rtems_score_HEADERS = $(include_rtems_scoredir)/sparc64.h \ |
---|
59 | # $(include_rtems_scoredir)/cpu.h \ |
---|
60 | # $(include_rtems_scoredir)/types.h |
---|
61 | |
---|
62 | ## simexample/score |
---|
63 | #noinst_PROGRAMS += simexample/score.rel |
---|
64 | #simexample_score_rel_SOURCES = |
---|
65 | #simexample_score_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
66 | #simexample_score_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
67 | # |
---|
68 | #endif |
---|
69 | ### End of example. |
---|
70 | |
---|
71 | include $(srcdir)/preinstall.am |
---|
72 | include $(top_srcdir)/../../../automake/local.am |
---|