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 | CLEANFILES = |
---|
11 | |
---|
12 | if !UNIX |
---|
13 | include_rtemsdir = $(includedir)/rtems |
---|
14 | |
---|
15 | EXTRA_LIBRARIES = libblock.a |
---|
16 | CLEANFILES += libblock.a |
---|
17 | libblock_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
18 | |
---|
19 | EXTRA_LIBRARIES += libblock_g.a |
---|
20 | CLEANFILES += libblock_g.a |
---|
21 | libblock_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
22 | |
---|
23 | include_rtems_HEADERS = include/rtems/bdbuf.h include/rtems/blkdev.h \ |
---|
24 | include/rtems/diskdevs.h include/rtems/ramdisk.h \ |
---|
25 | include/rtems/ide_part_table.h |
---|
26 | |
---|
27 | libblock_a_SOURCES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c \ |
---|
28 | src/ide_part_table.c |
---|
29 | |
---|
30 | libblock_g_a_SOURCES = $(libblock_a_SOURCES) |
---|
31 | |
---|
32 | all-local: $(PREINSTALL_FILES) libblock$(LIB_VARIANT).a |
---|
33 | endif |
---|
34 | |
---|
35 | PREINSTALL_DIRS = |
---|
36 | PREINSTALL_FILES = |
---|
37 | |
---|
38 | if !UNIX |
---|
39 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
40 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
41 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
42 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
43 | |
---|
44 | $(PROJECT_INCLUDE)/rtems/bdbuf.h: include/rtems/bdbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
45 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/bdbuf.h |
---|
46 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/bdbuf.h |
---|
47 | |
---|
48 | $(PROJECT_INCLUDE)/rtems/blkdev.h: include/rtems/blkdev.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
49 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/blkdev.h |
---|
50 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/blkdev.h |
---|
51 | |
---|
52 | $(PROJECT_INCLUDE)/rtems/diskdevs.h: include/rtems/diskdevs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
53 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/diskdevs.h |
---|
54 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/diskdevs.h |
---|
55 | |
---|
56 | $(PROJECT_INCLUDE)/rtems/ramdisk.h: include/rtems/ramdisk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
57 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ramdisk.h |
---|
58 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ramdisk.h |
---|
59 | |
---|
60 | $(PROJECT_INCLUDE)/rtems/ide_part_table.h: include/rtems/ide_part_table.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
61 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ide_part_table.h |
---|
62 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ide_part_table.h |
---|
63 | endif |
---|
64 | |
---|
65 | CLEANFILES += $(PREINSTALL_FILES) |
---|
66 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
67 | |
---|
68 | include $(top_srcdir)/automake/local.am |
---|