source: rtems/cpukit/libblock/Makefile.am @ c321496

4.104.114.84.95
Last change on this file since c321496 was c321496, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/31/02 at 05:48:15

2002-07-31 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge src/Makefile.am.
  • src/Makefile.am: Remove.
  • configure.ac: Remove src/Makefile.am
  • Property mode set to 100644
File size: 958 bytes
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../aclocal
6
7include $(top_srcdir)/../automake/multilib.am
8include $(top_srcdir)/../automake/compile.am
9include $(top_srcdir)/../automake/lib.am
10
11include_rtemsdir = $(includedir)/rtems
12
13$(PROJECT_INCLUDE)/%.h: include/%.h
14        $(INSTALL_DATA) $< $@
15
16$(PROJECT_INCLUDE)/rtems:
17        @$(mkinstalldirs) $@
18
19include_rtems_HEADERS = \
20    include/rtems/bdbuf.h include/rtems/blkdev.h \
21    include/rtems/diskdevs.h include/rtems/ramdisk.h
22
23PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \
24    $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
25
26LIB = ${ARCH}/libblock.a
27
28C_FILES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c
29
30C_O_FILES = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
31
32SRCS = $(C_FILES)
33OBJS = $(C_O_FILES)
34
35AM_CFLAGS += $(LIBC_DEFINES)
36
37${ARCH}/%.$(OBJEXT): src/%.c
38        ${COMPILE} -o $@ -c $<
39
40$(LIB): ${OBJS}
41        $(make-library)
42
43all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
44
45include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.