blob: 4289eb377791145acd0c64cf150921592744bb6f (
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
|
##
## $Id$
##
LIBNAME = libide
LIB = $(ARCH)/$(LIBNAME).a
C_FILES = ata.c ide_controller.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
noinst_HEADERS = ata_internal.h
OBJS = $(C_O_FILES)
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../automake/compile.am
include $(top_srcdir)/../../automake/lib.am
PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
$(include_ide_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
$(PROJECT_INCLUDE)/libchip:
@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/libchip/%.h: %.h
$(INSTALL_DATA) $< $@
if LIBCHIP
include_idedir = $(includedir)/libchip
include_ide_HEADERS = ata.h ide_ctrl_cfg.h ide_ctrl.h ide_ctrl_io.h
$(LIB): $(OBJS)
$(make-library)
all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB)
endif
EXTRA_DIST = $(C_FILES)
include $(top_srcdir)/../../automake/subdirs.am
include $(top_srcdir)/../../automake/local.am
|