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