1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | ## wrapup is the one that actually builds and installs the library |
---|
11 | ## from the individual .rel files built in other directories |
---|
12 | SUBDIRS = . startup console clock timer wrapup |
---|
13 | SUBDIRS += tools |
---|
14 | |
---|
15 | # FIXME: This directory is missing |
---|
16 | # ramdisk |
---|
17 | |
---|
18 | include_HEADERS += include/syscall.h |
---|
19 | include_HEADERS += include/ramdisk.h |
---|
20 | include_HEADERS += include/coverhd.h |
---|
21 | |
---|
22 | S_FILES = start/start.S |
---|
23 | $(ARCH)/%$(LIB_VARIANT).$(OBJEXT): start/start.S $(ARCH)/$(dirstamp) |
---|
24 | ${CCASCOMPILE} -DASM -o $@ -c $< |
---|
25 | |
---|
26 | project_lib_DATA = $(ARCH)/start$(LIB_VARIANT).$(OBJEXT) |
---|
27 | |
---|
28 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
29 | |
---|
30 | EXTRA_DIST = $(S_FILES) |
---|
31 | |
---|
32 | TMPINSTALL_FILES = |
---|
33 | |
---|
34 | $(PROJECT_INCLUDE)/syscall.h: include/syscall.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
35 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/syscall.h |
---|
36 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/syscall.h |
---|
37 | |
---|
38 | $(PROJECT_INCLUDE)/ramdisk.h: include/ramdisk.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
39 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ramdisk.h |
---|
40 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/ramdisk.h |
---|
41 | |
---|
42 | $(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
43 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
44 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h |
---|
45 | |
---|
46 | $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): $(ARCH)/start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
47 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) |
---|
48 | TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) |
---|
49 | |
---|
50 | CLEANFILES = $(PREINSTALL_FILES) |
---|
51 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
52 | |
---|
53 | include $(top_srcdir)/../../../../automake/subdirs.am |
---|
54 | include $(top_srcdir)/../../../../automake/local.am |
---|