source: rtems/cpukit/score/cpu/powerpc/Makefile.am @ a3dfa39

4.104.114.84.95
Last change on this file since a3dfa39 was a85d8ec, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/26/02 at 13:32:13

2002-07-26 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Build libscorecpu.a instead of rtems-cpu.rel.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(top_srcdir)/../../../automake/multilib.am
8include $(top_srcdir)/../../../automake/compile.am
9include $(top_srcdir)/../../../automake/lib.am
10
11$(PROJECT_INCLUDE)/%.h: %.h
12        $(INSTALL_DATA) $< $@
13
14$(PROJECT_INCLUDE):
15        $(mkinstalldirs) $@
16
17$(PROJECT_INCLUDE)/rtems:
18        $(mkinstalldirs) $@
19
20$(PROJECT_INCLUDE)/rtems/score:
21        $(mkinstalldirs) $@
22
23include_HEADERS = asm.h
24PREINSTALL_FILES = $(PROJECT_INCLUDE) \
25    $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)
26
27include_rtems_scoredir = $(includedir)/rtems/score
28include_rtems_score_HEADERS = \
29  rtems/score/ppc.h \
30  rtems/score/types.h
31include_rtems_score_HEADERS += rtems/score/cpu.h
32
33$(PROJECT_INCLUDE)/rtems/old-exceptions:
34        $(mkinstalldirs) $@
35
36include_rtems_old_exceptionsdir = $(includedir)/rtems/old-exceptions
37include_rtems_old_exceptions_HEADERS = rtems/old-exceptions/cpu.h
38
39$(PROJECT_INCLUDE)/rtems/new-exceptions:
40        $(mkinstalldirs) $@
41
42include_rtems_new_exceptionsdir = $(includedir)/rtems/new-exceptions
43include_rtems_new_exceptions_HEADERS = rtems/new-exceptions/cpu.h
44
45$(PROJECT_INCLUDE)/rtems/powerpc:
46        $(mkinstalldirs) $@
47
48include_rtems_powerpcdir = $(includedir)/rtems/powerpc
49include_rtems_powerpc_HEADERS = rtems/powerpc/registers.h
50
51PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \
52    $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)
53
54PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/old-exceptions \
55    $(include_rtems_old_exceptions_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)
56
57PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/new-exceptions \
58    $(include_rtems_new_exceptions_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)
59
60PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc \
61    $(include_rtems_powerpc_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)
62
63C_FILES = # cpu.c
64C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
65
66S_FILES = # cpu_asm.S
67S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT))
68
69libscorecpu_a_OBJECTS = $(C_O_FILES) $(S_O_FILES)
70
71$(LIB): $(libscorecpu_a_OBJECTS)
72        $(make-library)
73
74all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB) \
75    $(TMPINSTALL_FILES)
76
77include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.