source: rtems/c/src/libchip/rtc/Makefile.am @ f010a5e

4.104.114.84.9
Last change on this file since f010a5e was d3795e3e, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 5, 2001 at 6:24:37 PM

2001-02-03 Ralf Corsepius <corsepiu@…>

  • network/Makefile.am, rtc/Makefile.am, serial/Makefile.am: Apply include_*HEADERS instead of H_FILES, replace ${..} with $(..).
  • Property mode set to 100644
File size: 1.2 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7include_libchipdir = $(includedir)/libchip
8
9LIBNAME = librtcio
10LIB = $(ARCH)/$(LIBNAME).a
11
12C_FILES = rtcprobe.c icm7170.c icm7170_reg.c icm7170_reg2.c icm7170_reg4.c \
13    icm7170_reg8.c m48t08.c m48t08_reg.c m48t08_reg2.c m48t08_reg4.c \
14    m48t08_reg8.c
15
16C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
17
18include_libchip_HEADERS = rtc.h icm7170.h m48t08.h
19
20OBJS = $(C_O_FILES)
21
22include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
23include $(top_srcdir)/../../../automake/compile.am
24include $(top_srcdir)/../../../automake/lib.am
25
26PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip \
27    $(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
28
29TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
30
31$(PROJECT_INCLUDE)/libchip:
32        @$(mkinstalldirs) $@
33$(PROJECT_INCLUDE)/libchip/%.h: %.h
34        $(INSTALL_DATA) $< $@
35
36#
37# Add local stuff here using +=
38#
39
40AM_CFLAGS += $(LIBC_DEFINES)
41
42$(LIB): $(OBJS)
43        $(make-library)
44
45$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
46        $(INSTALL_DATA) $< $@
47
48all-local: $(ARCH) $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
49
50DOC_FILES = README.ds1643 README.icm7170 README.m48t08 README.m48t18 STATUS
51
52EXTRA_DIST = $(C_FILES) $(DOC_FILES)
53
54include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.