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

4.104.114.84.95
Last change on this file since ee5769ad was cd24a22b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 9, 2004 at 2:48:20 PM

2004-02-09 Ralf Corsepius <corsepiu@…>

  • Index: m68040/Makefile.am, mcf5206/Makefile.am, shared/Makefile.am: Don't include lib.am.
  • 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
11
12if shared
13include_libcpudir = $(includedir)/libcpu
14
15## cache
16include_libcpu_HEADERS = ../../shared/include/cache.h
17
18EXTRA_PROGRAMS += cache.rel
19CLEANFILES += cache.rel
20cache_rel_SOURCES = cache/cache.c cache/cache_.h \
21    ../../shared/src/cache_aligned_malloc.c \
22    ../../shared/src/cache_manager.c
23cache_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) -I$(srcdir)/cache
24cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
25
26EXTRA_PROGRAMS += cache_g.rel
27CLEANFILES += cache_g.rel
28cache_g_rel_SOURCES = $(cache_rel_SOURCES)
29cache_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) -I$(srcdir)/cache
30cache_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
31
32noinst_DATA += cache$(LIB_VARIANT).rel
33
34## misc
35
36# gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to
37if mcpu32p
38M68K_CPPFLAGS = -D__mcpu32p__
39endif
40if mcf5272
41M68K_CPPFLAGS = -Dmcf5272
42endif
43
44EXTRA_PROGRAMS += misc.rel
45CLEANFILES += misc.rel
46misc_rel_SOURCES = misc/memcpy.c misc/m68kidle.c
47misc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) $(M68K_CPPFLAGS)
48misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50EXTRA_PROGRAMS += misc_g.rel
51CLEANFILES += misc_g.rel
52misc_g_rel_SOURCES = $(misc_rel_SOURCES)
53misc_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) $(M68K_CPPFLAGS)
54misc_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
55
56noinst_DATA += misc$(LIB_VARIANT).rel
57endif
58
59## --
60all-local: $(PREINSTALL_FILES)
61
62PREINSTALL_DIRS =
63PREINSTALL_FILES =
64
65if shared
66$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
67        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
68        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
69PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
70
71$(PROJECT_INCLUDE)/libcpu/cache.h: ../../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
72        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
73PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
74
75endif
76
77CLEANFILES += $(PREINSTALL_FILES)
78DISTCLEANFILES = $(PREINSTALL_DIRS)
79
80include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.