1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/multilib.am |
---|
6 | include $(top_srcdir)/automake/compile.am |
---|
7 | include $(top_srcdir)/automake/lib.am |
---|
8 | |
---|
9 | include_rtemsdir = $(includedir)/rtems |
---|
10 | |
---|
11 | include_rtems_HEADERS = include/rtems/bdbuf.h include/rtems/blkdev.h \ |
---|
12 | include/rtems/diskdevs.h include/rtems/ramdisk.h \ |
---|
13 | include/rtems/ide_part_table.h |
---|
14 | |
---|
15 | LIB = ${ARCH}/libblock.a |
---|
16 | |
---|
17 | C_FILES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c \ |
---|
18 | src/ide_part_table.c |
---|
19 | |
---|
20 | OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT)) |
---|
21 | |
---|
22 | AM_CPPFLAGS += -I$(top_builddir) |
---|
23 | AM_CPPFLAGS += $(LIBC_DEFINES) |
---|
24 | |
---|
25 | ${ARCH}/%.$(OBJEXT): src/%.c $(ARCH)/$(dirstamp) |
---|
26 | ${COMPILE} -o $@ -c $< |
---|
27 | |
---|
28 | $(LIB): ${OBJS} |
---|
29 | $(make-library) |
---|
30 | |
---|
31 | all-local: $(PREINSTALL_FILES) $(LIB) |
---|
32 | |
---|
33 | PREINSTALL_FILES = |
---|
34 | |
---|
35 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
36 | @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems |
---|
37 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
38 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
39 | |
---|
40 | $(PROJECT_INCLUDE)/rtems/bdbuf.h: include/rtems/bdbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
41 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/bdbuf.h |
---|
42 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/bdbuf.h |
---|
43 | |
---|
44 | $(PROJECT_INCLUDE)/rtems/blkdev.h: include/rtems/blkdev.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
45 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/blkdev.h |
---|
46 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/blkdev.h |
---|
47 | |
---|
48 | $(PROJECT_INCLUDE)/rtems/diskdevs.h: include/rtems/diskdevs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
49 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/diskdevs.h |
---|
50 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/diskdevs.h |
---|
51 | |
---|
52 | $(PROJECT_INCLUDE)/rtems/ramdisk.h: include/rtems/ramdisk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
53 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ramdisk.h |
---|
54 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ramdisk.h |
---|
55 | |
---|
56 | $(PROJECT_INCLUDE)/rtems/ide_part_table.h: include/rtems/ide_part_table.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
57 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ide_part_table.h |
---|
58 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ide_part_table.h |
---|
59 | |
---|
60 | include $(top_srcdir)/automake/local.am |
---|