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 | include_HEADERS = asm.h |
---|
12 | |
---|
13 | include_rtems_scoredir = $(includedir)/rtems/score |
---|
14 | include_rtems_score_HEADERS = rtems/score/cpu.h rtems/score/no_cpu.h \ |
---|
15 | rtems/score/cpu_asm.h rtems/score/types.h |
---|
16 | |
---|
17 | C_FILES = cpu.c cpu_asm.c |
---|
18 | OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
19 | |
---|
20 | LIB = $(ARCH)/libscorecpu.a |
---|
21 | |
---|
22 | $(LIB): $(OBJS) |
---|
23 | $(make-library) |
---|
24 | |
---|
25 | all-local: $(PREINSTALL_FILES) $(LIB) |
---|
26 | |
---|
27 | EXTRA_DIST = cpu.c cpu_asm.c |
---|
28 | |
---|
29 | PREINSTALL_FILES = |
---|
30 | |
---|
31 | $(PROJECT_INCLUDE)/asm.h: asm.h |
---|
32 | $(INSTALL_DATA) $< $@ |
---|
33 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/asm.h |
---|
34 | |
---|
35 | $(PROJECT_INCLUDE)/rtems/score: |
---|
36 | @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems/score |
---|
37 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score |
---|
38 | |
---|
39 | $(PROJECT_INCLUDE)/rtems/score/cpu.h: rtems/score/cpu.h |
---|
40 | $(INSTALL_DATA) $< $@ |
---|
41 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpu.h |
---|
42 | |
---|
43 | $(PROJECT_INCLUDE)/rtems/score/no_cpu.h: rtems/score/no_cpu.h |
---|
44 | $(INSTALL_DATA) $< $@ |
---|
45 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/no_cpu.h |
---|
46 | |
---|
47 | $(PROJECT_INCLUDE)/rtems/score/cpu_asm.h: rtems/score/cpu_asm.h |
---|
48 | $(INSTALL_DATA) $< $@ |
---|
49 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpu_asm.h |
---|
50 | |
---|
51 | $(PROJECT_INCLUDE)/rtems/score/types.h: rtems/score/types.h |
---|
52 | $(INSTALL_DATA) $< $@ |
---|
53 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/types.h |
---|
54 | |
---|
55 | include $(top_srcdir)/../../../automake/local.am |
---|