source: rtems/cpukit/libblock/Makefile.am @ 53a8958

4.104.114.84.95
Last change on this file since 53a8958 was 53a8958, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 1:39:43 PM

2003-12-12 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
  • Property mode set to 100644
File size: 1.9 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 $(ARCH)/$(dirstamp)
26        ${COMPILE} -o $@ -c $<
27
28$(LIB): ${OBJS}
29        $(make-library)
30
31all-local: $(PREINSTALL_FILES) $(LIB)
32
33PREINSTALL_FILES =
34
35$(PROJECT_INCLUDE)/rtems/$(dirstamp):
36        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
37        @: > $(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
41PREINSTALL_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
45PREINSTALL_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
49PREINSTALL_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
53PREINSTALL_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
57PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ide_part_table.h
58
59include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.