source: rtems/c/src/lib/libcpu/powerpc/shared/Makefile.am @ 81b29d79

4.104.114.84.95
Last change on this file since 81b29d79 was 81b29d79, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 14, 2004 at 6:47:48 AM

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

  • Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. Add PRE/TMPINSTALL_FILES to CLEANFILES.
  • mpc505/Makefile.am: Ditto.
  • mpc6xx/Makefile.am: Ditto.
  • mpc8260/Makefile.am: Ditto.
  • mpc8xx/Makefile.am: Ditto.
  • ppc403/Makefile.am: Ditto.
  • shared/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 3.7 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)
61PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
62
63$(PROJECT_INCLUDE)/libcpu/spr.h: include/spr.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
64        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/spr.h
65PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/spr.h
66
67$(PROJECT_INCLUDE)/libcpu/io.h: include/io.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
68        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/io.h
69PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/io.h
70
71$(PROJECT_INCLUDE)/libcpu/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
72        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/mmu.h
73PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/mmu.h
74
75$(PROJECT_INCLUDE)/libcpu/page.h: include/page.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
76        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/page.h
77PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/page.h
78
79$(PROJECT_INCLUDE)/libcpu/byteorder.h: include/byteorder.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
80        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/byteorder.h
81PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/byteorder.h
82
83$(PROJECT_INCLUDE)/libcpu/pgtable.h: include/pgtable.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/pgtable.h
85PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/pgtable.h
86
87$(PROJECT_INCLUDE)/libcpu/cpuIdent.h: include/cpuIdent.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cpuIdent.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cpuIdent.h
90
91$(PROJECT_INCLUDE)/libcpu/stackTrace.h: src/stackTrace.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/stackTrace.h
93PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/stackTrace.h
94
95$(PROJECT_INCLUDE)/libcpu/cache.h: $(top_srcdir)/../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
97PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
98
99CLEANFILES = $(PREINSTALL_FILES)
100
101include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.