1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../automake/multilib.am |
---|
8 | include $(top_srcdir)/../../../automake/compile.am |
---|
9 | include $(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 | |
---|
23 | include_HEADERS= |
---|
24 | PREINSTALL_FILES = $(PROJECT_INCLUDE) $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
25 | |
---|
26 | include_rtems_scoredir = $(includedir)/rtems/score |
---|
27 | include_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 |
---|
33 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \ |
---|
34 | $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) |
---|
35 | |
---|
36 | $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/rtems$(LIB_VARIANT).o: $(ARCH)/rtems.o |
---|
37 | $(INSTALL_DATA) $< $@ |
---|
38 | |
---|
39 | C_FILES = cpu.c |
---|
40 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) |
---|
41 | |
---|
42 | S_FILES = cpu_asm.S |
---|
43 | S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o) |
---|
44 | |
---|
45 | REL = $(ARCH)/rtems-cpu.rel |
---|
46 | |
---|
47 | rtems_cpu_rel_OBJECTS = $(C_O_FILES) $(S_O_FILES) |
---|
48 | |
---|
49 | $(REL): $(rtems_cpu_rel_OBJECTS) |
---|
50 | $(make-rel) |
---|
51 | |
---|
52 | TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/rtems$(LIB_VARIANT).o |
---|
53 | |
---|
54 | all-local: $(ARCH) rtems/score/offsets.h $(PREINSTALL_FILES) $(rtems_cpu_rel_OBJECTS) $(REL) \ |
---|
55 | $(TMPINSTALL_FILES) |
---|
56 | |
---|
57 | .PRECIOUS: $(REL) |
---|
58 | |
---|
59 | EXTRA_DIST = cpu.c cpu_asm.S rtems.S |
---|
60 | |
---|
61 | # FIXME: We should get rid of genoffsets |
---|
62 | GENOFFSETS = $(PROJECT_TOPdir)/tools/cpu/hppa1.1/genoffsets |
---|
63 | |
---|
64 | GENERIC_H_FILES = rtems/score/offsets.h |
---|
65 | rtems/score/offsets.h: $(GENOFFSETS) rtems/score/cpu.h |
---|
66 | $(mkinstalldirs) rtems/score |
---|
67 | $(RM) $@ |
---|
68 | $(GENOFFSETS) > $@ |
---|
69 | CLEANFILES = rtems/score/offsets.h |
---|
70 | |
---|
71 | include $(top_srcdir)/../../../automake/local.am |
---|