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

4.104.114.84.9
Last change on this file since 5a550a3b was 5a550a3b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 7:02:50 AM

2003-12-01 Ralf Corsepius <corsepiu@…>

  • ide/Makefile.am: Use dirstamps for preinstallation. Reformat.
  • network/Makefile.am: Ditto.
  • rtc/Makefile.am: Ditto.
  • serial/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[9608320]1##
2## $Id$
3##
4
5LIBNAME = librtcio
[d3795e3e]6LIB = $(ARCH)/$(LIBNAME).a
[9608320]7
8C_FILES = rtcprobe.c icm7170.c icm7170_reg.c icm7170_reg2.c icm7170_reg4.c \
[df49c60]9    icm7170_reg8.c m48t08.c m48t08_reg.c m48t08_reg2.c m48t08_reg4.c \
10    m48t08_reg8.c
[9608320]11
[da35120]12OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
[9608320]13
[5c0064d]14include $(top_srcdir)/automake/compile.am
15include $(top_srcdir)/automake/lib.am
[9608320]16
17#
18# Add local stuff here using +=
19#
[c7ff624c]20if LIBCHIP
21include_libchipdir = $(includedir)/libchip
22include_libchip_HEADERS = rtc.h icm7170.h m48t08.h
[9608320]23
[d3795e3e]24$(LIB): $(OBJS)
[9608320]25        $(make-library)
26
[2f0a1dc1]27all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB)
[c7ff624c]28endif
[9608320]29
[df49c60]30DOC_FILES = README.ds1643 README.icm7170 README.m48t08 README.m48t18 STATUS
[9608320]31
[70810dc]32EXTRA_DIST = $(C_FILES) $(DOC_FILES)
[9608320]33
[5a550a3b]34PREINSTALL_FILES =
35
36if LIBCHIP
37$(PROJECT_INCLUDE)/libchip/$(dirstamp):
38        @$(mkinstalldirs) $(PROJECT_INCLUDE)/libchip
39        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
40PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
41
42$(PROJECT_INCLUDE)/libchip/rtc.h: rtc.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
43        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/rtc.h
44PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/rtc.h
45
46$(PROJECT_INCLUDE)/libchip/icm7170.h: icm7170.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
47        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/icm7170.h
48PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/icm7170.h
49
50$(PROJECT_INCLUDE)/libchip/m48t08.h: m48t08.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
51        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/m48t08.h
52PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/m48t08.h
53endif
54
[5c0064d]55include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.