source: rtems/cpukit/score/cpu/hppa1.1/Makefile.am @ a85d8ec

4.104.114.84.9
Last change on this file since a85d8ec was a85d8ec, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 26, 2002 at 1:32:13 PM

2002-07-26 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Build libscorecpu.a instead of rtems-cpu.rel.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(top_srcdir)/../../../automake/multilib.am
8include $(top_srcdir)/../../../automake/compile.am
9include $(top_srcdir)/../../../automake/lib.am
10
11$(PROJECT_INCLUDE)/%.h: %.h
12        $(INSTALL_DATA) $< $@
13
14$(PROJECT_INCLUDE):
15        $(mkinstalldirs) $@
16
17$(PROJECT_INCLUDE)/rtems:
18        $(mkinstalldirs) $@
19
20$(PROJECT_INCLUDE)/rtems/score:
21        $(mkinstalldirs) $@
22
23include_HEADERS=
24PREINSTALL_FILES = $(PROJECT_INCLUDE) $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)
25
26include_rtems_scoredir = $(includedir)/rtems/score
27include_rtems_score_HEADERS = \
28    rtems/score/cpu.h \
29    rtems/score/cpu_asm.h \
30    rtems/score/hppa.h \
31    rtems/score/types.h \
32    rtems/score/offsets.h
33PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \
34    $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)
35
36C_FILES = cpu.c
37C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
38
39S_FILES = cpu_asm.S
40S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT))
41
42LIB = $(ARCH)/libscorecpu.a
43
44libscorecpu_a_OBJECTS = $(C_O_FILES) $(S_O_FILES)
45
46$(LIB): $(libscorecpu_a_OBJECTS)
47        $(make-library)
48
49all-local: $(ARCH) rtems/score/offsets.h $(PREINSTALL_FILES) $(LIB) \
50    $(TMPINSTALL_FILES)
51
52EXTRA_DIST = cpu.c cpu_asm.S
53
54# FIXME: We should get rid of genoffsets
55GENOFFSETS = $(PROJECT_TOPdir)/tools/cpu/hppa1.1/genoffsets
56
57GENERIC_H_FILES = rtems/score/offsets.h
58rtems/score/offsets.h: $(GENOFFSETS) rtems/score/cpu.h
59        $(mkinstalldirs) rtems/score
60        $(RM) $@
61        $(GENOFFSETS) > $@
62CLEANFILES = rtems/score/offsets.h
63
64include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.