source: rtems/c/src/lib/libcpu/m68k/shared/Makefile.am @ dc3b7da

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

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

  • shared/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. Add PRE/TMPINSTALL_FILES to CLEANFILES.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##
2## $Id$
3##
4
5CLEANDIRS =
6EXTRA_DIST =
7noinst_DATA =
8
9include $(top_srcdir)/../../../automake/compile.am
10include $(top_srcdir)/../../../automake/lib.am
11
12## cache
13
14cache_C_FILES = cache/cache.c
15EXTRA_DIST += $(cache_C_FILES)
16cache_OBJECTS = $(cache_C_FILES:cache/%.c=cache/$(ARCH)/%.$(OBJEXT))
17
18common_C_FILES = ../../shared/src/cache_aligned_malloc.c
19common_C_FILES += ../../shared/src/cache_manager.c
20cache_OBJECTS += \
21    $(common_C_FILES:../../shared/src/%.c=cache/$(ARCH)/%.$(OBJEXT))
22
23cache/$(ARCH)/$(dirstamp):
24        @$(mkdir_p) cache/$(ARCH)
25        @: > cache/$(ARCH)/$(dirstamp)
26cache/$(ARCH)/%.$(OBJEXT): cache/%.c cache/$(ARCH)/$(dirstamp)
27        ${COMPILE} -I$(srcdir)/cache $(M68K_CPPFLAGS) -o $@ -c $<
28cache/$(ARCH)/%.$(OBJEXT): ../../shared/src/%.c cache/$(ARCH)/$(dirstamp)
29        ${COMPILE} -I$(srcdir)/cache $(M68K_CPPFLAGS) -o $@ -c $<
30CLEANDIRS += cache/o-optimize cache/o-debug
31noinst_DATA += $(cache_OBJECTS)
32
33include_libcpudir = $(includedir)/libcpu
34
35noinst_HEADERS = cache/cache_.h
36include_libcpu_HEADERS = ../../shared/include/cache.h
37
38## misc
39
40misc_C_FILES = misc/memcpy.c misc/m68kidle.c
41misc_OBJECTS = $(misc_C_FILES:misc/%.c=misc/$(ARCH)/%.$(OBJEXT))
42
43# gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to
44if mcpu32p
45M68K_CPPFLAGS = -D__mcpu32p__
46endif
47if mcf5272
48M68K_CPPFLAGS = -Dmcf5272
49endif
50
51misc/$(ARCH)/$(dirstamp):
52        @$(mkdir_p) misc/$(ARCH)
53        @: > misc/$(ARCH)/$(dirstamp)
54misc/$(ARCH)/%.$(OBJEXT): misc/%.c misc/$(ARCH)/$(dirstamp)
55        ${COMPILE} $(M68K_CPPFLAGS) -o $@ -c $<
56CLEANDIRS += misc/o-optimize misc/o-debug
57noinst_DATA += $(misc_OBJECTS)
58
59## --
60all-local: $(PREINSTALL_FILES)
61
62PREINSTALL_FILES =
63
64$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
65        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
66        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
67PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
68
69$(PROJECT_INCLUDE)/libcpu/cache.h: ../../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
70        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
71PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
72
73CLEANFILES = $(PREINSTALL_FILES)
74
75include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.