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

4.104.114.84.95
Last change on this file since 6a8e52d was c7ff624c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/25/03 at 06:35:06

2003-07-25 Ralf Corsepius <corsepiu@…>

  • ide/Makefile.am, network/Makefile.am, rtc/Makefile.am, serial/Makefile.am: Add conditional LIBCHIP. Conditionally build include-dirs.
  • Property mode set to 100644
File size: 979 bytes
Line 
1##
2## $Id$
3##
4
5
6LIBNAME = librtcio
7LIB = $(ARCH)/$(LIBNAME).a
8
9C_FILES = rtcprobe.c icm7170.c icm7170_reg.c icm7170_reg2.c icm7170_reg4.c \
10    icm7170_reg8.c m48t08.c m48t08_reg.c m48t08_reg2.c m48t08_reg4.c \
11    m48t08_reg8.c
12
13OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
14
15
16include $(top_srcdir)/../../automake/compile.am
17include $(top_srcdir)/../../automake/lib.am
18
19
20PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
21    $(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
22
23$(PROJECT_INCLUDE)/libchip:
24        @$(mkinstalldirs) $@
25$(PROJECT_INCLUDE)/libchip/%.h: %.h
26        $(INSTALL_DATA) $< $@
27
28#
29# Add local stuff here using +=
30#
31if LIBCHIP
32include_libchipdir = $(includedir)/libchip
33include_libchip_HEADERS = rtc.h icm7170.h m48t08.h
34
35$(LIB): $(OBJS)
36        $(make-library)
37
38all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB)
39endif
40
41DOC_FILES = README.ds1643 README.icm7170 README.m48t08 README.m48t18 STATUS
42
43EXTRA_DIST = $(C_FILES) $(DOC_FILES)
44
45include $(top_srcdir)/../../automake/local.am
Note: See TracBrowser for help on using the repository browser.