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

4.104.114.84.95
Last change on this file since 18039447 was 18039447, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/20/04 at 02:20:27

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

  • m68040/Makefile.am: Merge-in m68040/fpsp/Makefile.am. Use automake-compilation rules.
  • m68040/fpsp/Makefile.am: Remove.
  • shared/Makefile.am: Use automake compilation rules.
  • Makefile.am: Reflect changes above. Remove CPU_SUBDIR.
  • configure.ac: Require automake >= 1.8.2. Add subdir-objects to AUTOMAKE_OPTIONS. Remove CHECK_CUSTOM_BSP. Reflect changes above.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2## $Id$
3##
4
5CLEANFILES =
6EXTRA_DIST =
7EXTRA_PROGRAMS =
8noinst_DATA =
9
10include $(top_srcdir)/../../../automake/compile.am
11include $(top_srcdir)/../../../automake/lib.am
12
13if shared
14include_libcpudir = $(includedir)/libcpu
15
16## cache
17include_libcpu_HEADERS = ../../shared/include/cache.h
18
19EXTRA_PROGRAMS += cache.rel
20CLEANFILES += cache.rel
21cache_rel_SOURCES = cache/cache.c cache/cache_.h \
22    ../../shared/src/cache_aligned_malloc.c \
23    ../../shared/src/cache_manager.c
24cache_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) -I$(srcdir)/cache
25cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
26
27EXTRA_PROGRAMS += cache_g.rel
28CLEANFILES += cache_g.rel
29cache_g_rel_SOURCES = $(cache_rel_SOURCES)
30cache_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) -I$(srcdir)/cache
31cache_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
32
33noinst_DATA += cache$(LIB_VARIANT).rel
34
35## misc
36
37# gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to
38if mcpu32p
39M68K_CPPFLAGS = -D__mcpu32p__
40endif
41if mcf5272
42M68K_CPPFLAGS = -Dmcf5272
43endif
44
45EXTRA_PROGRAMS += misc.rel
46CLEANFILES += misc.rel
47misc_rel_SOURCES = misc/memcpy.c misc/m68kidle.c
48misc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) $(M68K_CPPFLAGS)
49misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
50
51EXTRA_PROGRAMS += misc_g.rel
52CLEANFILES += misc_g.rel
53misc_g_rel_SOURCES = $(misc_rel_SOURCES)
54misc_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) $(M68K_CPPFLAGS)
55misc_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57noinst_DATA += misc$(LIB_VARIANT).rel
58endif
59
60## --
61all-local: $(PREINSTALL_FILES)
62
63PREINSTALL_DIRS =
64PREINSTALL_FILES =
65
66if shared
67$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
68        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
69        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
70PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
71
72$(PROJECT_INCLUDE)/libcpu/cache.h: ../../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
73        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
74PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
75
76endif
77
78CLEANFILES += $(PREINSTALL_FILES)
79DISTCLEANFILES = $(PREINSTALL_DIRS)
80
81include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.