1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/multilib.am |
---|
6 | include $(top_srcdir)/automake/compile.am |
---|
7 | |
---|
8 | AM_CPPFLAGS += -I$(top_builddir) |
---|
9 | |
---|
10 | include_rtemsdir = $(includedir)/rtems |
---|
11 | |
---|
12 | EXTRA_LIBRARIES = libblock.a |
---|
13 | CLEANFILES = libblock.a |
---|
14 | libblock_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_OPTIMIZE_V) |
---|
15 | |
---|
16 | EXTRA_LIBRARIES += libblock_g.a |
---|
17 | CLEANFILES += libblock_g.a |
---|
18 | libblock_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_DEBUG_V) |
---|
19 | |
---|
20 | include_rtems_HEADERS = include/rtems/bdbuf.h include/rtems/blkdev.h \ |
---|
21 | include/rtems/diskdevs.h include/rtems/ramdisk.h \ |
---|
22 | include/rtems/ide_part_table.h |
---|
23 | |
---|
24 | libblock_a_SOURCES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c \ |
---|
25 | src/ide_part_table.c |
---|
26 | |
---|
27 | libblock_g_a_SOURCES = $(libblock_a_SOURCES) |
---|
28 | |
---|
29 | all-local: $(PREINSTALL_FILES) libblock$(LIB_VARIANT).a |
---|
30 | |
---|
31 | PREINSTALL_DIRS = |
---|
32 | PREINSTALL_FILES = |
---|
33 | |
---|
34 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
35 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
36 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
37 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
38 | |
---|
39 | $(PROJECT_INCLUDE)/rtems/bdbuf.h: include/rtems/bdbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
40 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/bdbuf.h |
---|
41 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/bdbuf.h |
---|
42 | |
---|
43 | $(PROJECT_INCLUDE)/rtems/blkdev.h: include/rtems/blkdev.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
44 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/blkdev.h |
---|
45 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/blkdev.h |
---|
46 | |
---|
47 | $(PROJECT_INCLUDE)/rtems/diskdevs.h: include/rtems/diskdevs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
48 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/diskdevs.h |
---|
49 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/diskdevs.h |
---|
50 | |
---|
51 | $(PROJECT_INCLUDE)/rtems/ramdisk.h: include/rtems/ramdisk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
52 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ramdisk.h |
---|
53 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ramdisk.h |
---|
54 | |
---|
55 | $(PROJECT_INCLUDE)/rtems/ide_part_table.h: include/rtems/ide_part_table.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
56 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ide_part_table.h |
---|
57 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ide_part_table.h |
---|
58 | |
---|
59 | CLEANFILES += $(PREINSTALL_FILES) |
---|
60 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
61 | |
---|
62 | include $(top_srcdir)/automake/local.am |
---|