source: rtems/c/src/lib/libcpu/powerpc/shared/Makefile.am @ 27a0df05

4.104.114.84.95
Last change on this file since 27a0df05 was 27a0df05, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 13, 2004 at 12:55:49 PM

2004-01-13 Ralf Corsepius <corsepiu@…>

  • mpc505/Makefile.am: Fix typo vectors/vectors.S.
  • shared/Makefile.am: Fix typo EXTRA_DIST = $(libcpuspec_C_FILES)
  • Property mode set to 100644
File size: 3.6 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/../../../automake/compile.am
6include $(top_srcdir)/../../../automake/lib.am
7
8# include
9
10libcpuspec_C_FILES = include/cpuIdent.c
11libcpuspec_OBJS = \
12    $(libcpuspec_C_FILES:include/%.c=include/$(ARCH)/%.$(OBJEXT))
13
14include_libcpudir = $(includedir)/libcpu
15
16include_libcpu_HEADERS = include/spr.h include/io.h include/mmu.h \
17    include/page.h include/byteorder.h include/pgtable.h include/cpuIdent.h
18
19include/$(ARCH)/$(dirstamp):
20        @$(mkdir_p) include/$(ARCH)
21        @: > include/$(ARCH)/$(dirstamp)
22include/$(ARCH)/%.$(OBJEXT): include/%.c include/$(ARCH)/$(dirstamp)
23        ${COMPILE} -o $@ -c $<
24include/$(ARCH)/libcpuspec.a: $(libcpuspec_OBJS)
25        $(make-library)
26CLEANDIRS = include/o-optimize include/o-debug
27
28EXTRA_DIST = $(libcpuspec_C_FILES)
29
30# src
31
32src_C_FILES = src/cache.c src/stack.c
33
34common_C_FILES = $(top_srcdir)/../shared/src/cache_aligned_malloc.c
35common_C_FILES += $(top_srcdir)/../shared/src/cache_manager.c
36
37src_O_FILES = $(src_C_FILES:src/%.c=src/$(ARCH)/%.$(OBJEXT))
38common_O_FILES = \
39    $(common_C_FILES:$(top_srcdir)/../shared/src/%.c=src/$(ARCH)/%.$(OBJEXT))
40
41src/$(ARCH)/$(dirstamp):
42        @$(mkdir_p) src/$(ARCH)
43        @: > src/$(ARCH)/$(dirstamp)
44src/$(ARCH)/%.$(OBJEXT): $(top_srcdir)/../shared/src/%.c src/$(ARCH)/$(dirstamp)
45        ${COMPILE} -I$(srcdir)/src -o $@ -c $<
46src/$(ARCH)/%.$(OBJEXT): src/%.c src/$(ARCH)/$(dirstamp)
47        ${COMPILE} -I$(srcdir)/src -o $@ -c $<
48CLEANDIRS += src/o-optimize src/o-debug
49
50noinst_HEADERS = src/cache_.h
51include_libcpu_HEADERS += src/stackTrace.h
52include_libcpu_HEADERS += $(top_srcdir)/../shared/include/cache.h
53
54all-local: $(PREINSTALL_FILES) include/$(ARCH)/libcpuspec.a $(src_O_FILES) $(common_O_FILES)
55
56PREINSTALL_FILES =
57
58$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
59        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
60        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
61
62$(PROJECT_INCLUDE)/libcpu/spr.h: include/spr.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
63        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/spr.h
64PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/spr.h
65
66$(PROJECT_INCLUDE)/libcpu/io.h: include/io.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
67        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/io.h
68PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/io.h
69
70$(PROJECT_INCLUDE)/libcpu/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
71        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/mmu.h
72PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/mmu.h
73
74$(PROJECT_INCLUDE)/libcpu/page.h: include/page.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
75        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/page.h
76PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/page.h
77
78$(PROJECT_INCLUDE)/libcpu/byteorder.h: include/byteorder.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
79        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/byteorder.h
80PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/byteorder.h
81
82$(PROJECT_INCLUDE)/libcpu/pgtable.h: include/pgtable.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
83        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/pgtable.h
84PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/pgtable.h
85
86$(PROJECT_INCLUDE)/libcpu/cpuIdent.h: include/cpuIdent.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
87        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cpuIdent.h
88PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cpuIdent.h
89
90$(PROJECT_INCLUDE)/libcpu/stackTrace.h: src/stackTrace.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
91        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/stackTrace.h
92PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/stackTrace.h
93
94$(PROJECT_INCLUDE)/libcpu/cache.h: $(top_srcdir)/../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
95        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
96PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
97
98include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.