source: rtems/c/src/lib/libcpu/powerpc/mpc6xx/Makefile.am @ 90251c3

4.104.114.84.95
Last change on this file since 90251c3 was 90251c3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 16, 2003 at 7:44:19 AM

2003-12-16 Ralf Corsepius <corsepiu@…>

  • mpc6xx/clock/Makefile.am: Remove.
  • mpc6xx/exceptions/Makefile.am: Remove.
  • mpc6xx/mmu/Makefile.am: Remove.
  • mpc6xx/timer/Makefile.am: Remove.
  • mpc6xx/wrapup/Makefile.am: Remove.
  • mpc6xx/Makefile.am: Merge-in Makefile.ams above.
  • Property mode set to 100644
File size: 3.8 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/../../../automake/compile.am
6include $(top_srcdir)/../../../automake/lib.am
7
8EXTRA_DIST =
9CLEANDIRS =
10noinst_DATA =
11
12include_libcpudir = $(includedir)/libcpu
13include_libcpu_HEADERS = exceptions/raw_exception.h
14
15# exceptions
16exceptions_C_FILES = exceptions/raw_exception.c
17exceptions_S_FILES = exceptions/asm_utils.S
18EXTRA_DIST += $(exceptions_C_FILES) $(exceptions_S_FILES)
19
20exceptions_rel_OBJECTS = $(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
21    $(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
22
23exceptions/$(ARCH)/$(dirstamp):
24        @$(mkdir_p) exceptions/$(ARCH)
25        @: > exceptions/$(ARCH)/$(dirstamp)
26exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
27        ${COMPILE} -o $@ -c $<
28exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
29        ${CCASCOMPILE} -o $@ -c $<
30exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
31        $(make-rel)
32CLEANDIRS += exceptions/o-optimize exceptions/o-debug
33noinst_DATA +=  exceptions/$(ARCH)/exceptions.rel
34
35# mmu
36include_libcpu_HEADERS += mmu/bat.h mmu/pte121.h
37mmu_C_FILES = mmu/bat.c mmu/pte121.c
38mmu_S_FILES = mmu/mmuAsm.S
39EXTRA_DIST += $(mmu_C_FILES) $(mmu_S_FILES)
40
41mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/$(ARCH)/%.$(OBJEXT)) \
42    $(mmu_S_FILES:mmu/%.S=mmu/$(ARCH)/%.$(OBJEXT))
43
44mmu/$(ARCH)/$(dirstamp):
45        @$(mkdir_p) mmu/$(ARCH)
46        @: > mmu/$(ARCH)/$(dirstamp)
47mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
48        ${COMPILE} -o $@ -c $<
49mmu/$(ARCH)/%.$(OBJEXT): mmu/%.S mmu/$(ARCH)/$(dirstamp)
50        ${CCASCOMPILE} -o $@ -c $<
51mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
52        $(make-rel)
53CLEANDIRS += mmu/o-optimize mmu/o-debug
54noinst_DATA +=  mmu/$(ARCH)/mmu.rel
55
56# clock
57include_libcpu_HEADERS += clock/c_clock.h
58
59clock_C_FILES = clock/c_clock.c
60EXTRA_DIST += $(clock_C_FILES)
61
62clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/$(ARCH)/%.$(OBJEXT))
63
64clock/$(ARCH)/$(dirstamp):
65        @$(mkdir_p) clock/$(ARCH)
66        @: > clock/$(ARCH)/$(dirstamp)
67clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
68        ${COMPILE} -o $@ -c $<
69clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
70        $(make-rel)
71CLEANDIRS += clock/o-optimize clock/o-debug
72noinst_DATA +=  clock/$(ARCH)/clock.rel
73
74# timer
75
76timer_C_FILES = timer/timer.c
77EXTRA_DIST += $(timer_C_FILES)
78
79timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
80
81timer/$(ARCH)/$(dirstamp):
82        @$(mkdir_p) timer/$(ARCH)
83        @: > timer/$(ARCH)/$(dirstamp)
84timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
85        ${COMPILE} -o $@ -c $<
86timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
87        $(make-rel)
88CLEANDIRS += timer/o-optimize timer/o-debug
89noinst_DATA +=  timer/$(ARCH)/timer.rel
90
91## wrapup
92OBJS = $(exception_OBJECTS)
93OBJS += $(mmu_OBJECTS)
94
95$(ARCH)/libcpuspec.a: ${OBJS}
96        $(make-library)
97
98noinst_DATA += $(ARCH)/libcpuspec.a
99
100## ----
101all-local: $(PREINSTALL_FILES)
102
103PREINSTALL_FILES =
104
105$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
106        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
107        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
108
109$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
110        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
111PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
112
113$(PROJECT_INCLUDE)/libcpu/bat.h: mmu/bat.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
114        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/bat.h
115PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/bat.h
116
117$(PROJECT_INCLUDE)/libcpu/pte121.h: mmu/pte121.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
118        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/pte121.h
119PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/pte121.h
120
121$(PROJECT_INCLUDE)/libcpu/c_clock.h: clock/c_clock.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
122        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/c_clock.h
123PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/c_clock.h
124
125include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.