source: rtems/c/src/lib/libcpu/mips/shared/Makefile.am @ afc3f27b

4.104.114.84.95
Last change on this file since afc3f27b was afc3f27b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/14/04 at 06:47:37

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

  • mongoosev/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. Add PRE/TMPINSTALL_FILES to CLEANFILES.
  • shared/Makefile.am: Ditto.
  • tx39/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1##
2## $Id$
3##
4
5EXTRA_DIST =
6CLEANDIRS =
7noinst_DATA =
8
9include $(top_srcdir)/../../../automake/compile.am
10include $(top_srcdir)/../../../automake/lib.am
11
12## cache
13include_libcpudir = $(includedir)/libcpu
14
15noinst_HEADERS = cache/cache_.h
16include_libcpu_HEADERS = ../../shared/include/cache.h
17
18cache_C_FILES = cache/cache.c
19common_C_FILES = ../../shared/src/cache_aligned_malloc.c
20common_C_FILES += ../../shared/src/cache_manager.c
21
22cache_rel_OBJECTS = $(cache_C_FILES:cache/%.c=cache/$(ARCH)/%.$(OBJEXT))
23cache_rel_OBJECTS += \
24    $(common_C_FILES:../../shared/src/%.c=cache/$(ARCH)/%.$(OBJEXT))
25
26AM_CPPFLAGS += -I$(srcdir)/cache
27
28cache/$(ARCH)/$(dirstamp):
29        @$(mkdir_p) cache/$(ARCH)
30        @: > cache/$(ARCH)/$(dirstamp)
31cache/$(ARCH)/%.$(OBJEXT): cache/%.c cache/$(ARCH)/$(dirstamp)
32        ${COMPILE} -o $@ -c $<
33cache/$(ARCH)/%.$(OBJEXT): ../../shared/src/%.c cache/$(ARCH)/$(dirstamp)
34        ${COMPILE} -o $@ -c $<
35cache/$(ARCH)/cache.rel: $(cache_rel_OBJECTS)
36        $(make-rel)
37CLEANDIRS += cache/o-optimize cache/o-debug
38noinst_DATA += cache/$(ARCH)/cache.rel
39
40## interrupts
41
42interrupts_C_FILES = interrupts/installisrentries.c \
43    interrupts/vectorexceptions.c
44interrupts_S_FILES = interrupts/isr_entries.S
45
46interrupts_rel_OBJECTS = \
47    $(interrupts_C_FILES:interrupts/%.c=interrupts/$(ARCH)/%.$(OBJEXT)) \
48    $(interrupts_S_FILES:interrupts/%.S=interrupts/$(ARCH)/%.$(OBJEXT))
49
50if tx39
51EXTRA_FLAGS = -DTX39
52endif
53
54if mongoosev
55EXTRA_FLAGS = -DMONGOOSEV
56endif
57
58AM_CPPFLAGS += $(EXTRA_FLAGS)
59
60interrupts/$(ARCH)/$(dirstamp):
61        @$(mkdir_p) interrupts/$(ARCH)
62        @: > interrupts/$(ARCH)/$(dirstamp)
63interrupts/$(ARCH)/%.$(OBJEXT): interrupts/%.c interrupts/$(ARCH)/$(dirstamp)
64        ${COMPILE} -o $@ -c $<
65interrupts/$(ARCH)/%.$(OBJEXT): interrupts/%.S interrupts/$(ARCH)/$(dirstamp)
66        ${CCASCOMPILE} -o $@ -c $<
67interrupts/$(ARCH)/interrupts.rel: $(interrupts_rel_OBJECTS)
68        $(make-rel)
69CLEANDIRS += interrupts/o-optimize interrupts/o-debug
70noinst_DATA += interrupts/$(ARCH)/interrupts.rel
71
72## --
73
74PREINSTALL_FILES =
75
76$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
77        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
78        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
79PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
80
81$(PROJECT_INCLUDE)/libcpu/cache.h: ../../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
82        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
83PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
84
85CLEANFILES = $(PREINSTALL_FILES)
86
87include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.