blob: 22565e5b471cf544292f1564be9451eebac45e94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
##
## $Id$
##
ACLOCAL_AMFLAGS = -I ../aclocal
include $(top_srcdir)/../automake/multilib.am
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/lib.am
include_rtemsdir = $(includedir)/rtems
$(PROJECT_INCLUDE)/%.h: include/%.h
$(INSTALL_DATA) $< $@
$(PROJECT_INCLUDE)/rtems:
@$(mkinstalldirs) $@
include_rtems_HEADERS = \
include/rtems/bdbuf.h include/rtems/blkdev.h \
include/rtems/diskdevs.h include/rtems/ramdisk.h
PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \
$(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
LIB = ${ARCH}/libblock.a
C_FILES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c
C_O_FILES = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
SRCS = $(C_FILES)
OBJS = $(C_O_FILES)
AM_CFLAGS += $(LIBC_DEFINES)
${ARCH}/%.$(OBJEXT): src/%.c
${COMPILE} -o $@ -c $<
$(LIB): ${OBJS}
$(make-library)
all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
include $(top_srcdir)/../automake/local.am
|