source: rtems/cpukit/libblock/Makefile.am @ 9e7e53bf

4.104.114.84.95
Last change on this file since 9e7e53bf was 9e7e53bf, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2003 at 8:01:23 AM

2003-11-30 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add $(dirstamp) to preinstallation rules.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7include $(top_srcdir)/automake/lib.am
8
9include_rtemsdir = $(includedir)/rtems
10
11include_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
15LIB = ${ARCH}/libblock.a
16
17C_FILES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c \
18    src/ide_part_table.c
19
20OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
21
22AM_CPPFLAGS += -I$(top_builddir)
23AM_CPPFLAGS += $(LIBC_DEFINES)
24
25${ARCH}/%.$(OBJEXT): src/%.c
26        ${COMPILE} -o $@ -c $<
27
28$(LIB): ${OBJS}
29        $(make-library)
30
31all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
32
33PREINSTALL_FILES =
34
35$(PROJECT_INCLUDE)/rtems/$(dirstamp):
36        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems
37        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
38PREINSTALL_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
42PREINSTALL_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
46PREINSTALL_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
50PREINSTALL_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
54PREINSTALL_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
58PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ide_part_table.h
59
60include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.