Changeset cd05d03 in rtems


Ignore:
Timestamp:
Dec 11, 2003, 6:43:46 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c0ed3a2
Parents:
72c9ccf
Message:

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

  • Makefile.am: Add dirstamp support.
Location:
c/src/librtems++
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/librtems++/ChangeLog

    r72c9ccf rcd05d03  
     12003-12-11      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * Makefile.am: Add dirstamp support.
     4
    152003-12-02      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/librtems++/Makefile.am

    r72c9ccf rcd05d03  
    88include $(top_srcdir)/../automake/lib.am
    99
     10${ARCH}/%.o: src/%.cc $(ARCH)/$(dirstamp)
     11        ${CXXCOMPILE} -o $@ -c $<
     12
     13if HAS_CXX
    1014include_rtems__dir = $(includedir)/rtems++
    1115
    12 $(PROJECT_INCLUDE)/%.h: include/%.h
    13         $(INSTALL_DATA) $< $@
    14 
    15 $(PROJECT_INCLUDE)/rtems++:
    16         @$(mkinstalldirs) $@
    17 
    18 if HAS_CXX
    1916include_rtems___HEADERS = include/rtems++/rtemsEvent.h \
    20     include/rtems++/rtemsInterrupt.h include/rtems++/rtemsMessageQueue.h include/rtems++/rtemsSemaphore.h \
    21     include/rtems++/rtemsStatusCode.h include/rtems++/rtemsTask.h include/rtems++/rtemsTaskMode.h \
     17    include/rtems++/rtemsInterrupt.h include/rtems++/rtemsMessageQueue.h \
     18    include/rtems++/rtemsSemaphore.h include/rtems++/rtemsStatusCode.h \
     19    include/rtems++/rtemsTask.h include/rtems++/rtemsTaskMode.h \
    2220    include/rtems++/rtemsTimer.h
    2321
    24 PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems++ \
    25     $(include_rtems___HEADERS:include/%=$(PROJECT_INCLUDE)/%)
    26 
    27 endif
    28 
    29 LIB = ${ARCH}/librtems++$(LIB_VARIANT).a
    30 
    3122CC_FILES = src/rtemsEvent.cc src/rtemsInterrupt.cc src/rtemsMessageQueue.cc \
    32     src/rtemsSemaphore.cc src/rtemsStatusCode.cc src/rtemsTask.cc src/rtemsTimer.cc
     23    src/rtemsSemaphore.cc src/rtemsStatusCode.cc src/rtemsTask.cc \
     24    src/rtemsTimer.cc
    3325OBJS = $(CC_FILES:src/%.cc=${ARCH}/%.$(OBJEXT))
    3426
    35 TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a
    36 
    37 install-data-local: $(LIB)
    38         @$(mkinstalldirs) $(DESTDIR)$(bsplibdir)
    39         $(INSTALL_DATA) $(LIB) $(DESTDIR)$(bsplibdir)
    40 
    41 ${ARCH}/%.o: src/%.cc
    42         test -d $(ARCH) || mkdir $(ARCH)
    43         ${CXXCOMPILE} -o $@ -c $<
    44 
    45 $(LIB): $(OBJS)
     27$(ARCH)/librtems++$(LIB_VARIANT).a: $(OBJS)
    4628        $(make-library)
    4729
    48 $(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a: $(LIB)
    49         $(INSTALL_DATA) $< $@
     30project_lib_DATA = $(ARCH)/librtems++$(LIB_VARIANT).a
     31endif
    5032
    5133all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
    5234
     35PREINSTALL_FILES =
     36
     37if HAS_CXX
     38$(PROJECT_INCLUDE)/rtems++/$(dirstamp):
     39        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems++
     40        @: > $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     41PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     42
     43$(PROJECT_INCLUDE)/rtems++/rtemsEvent.h: include/rtems++/rtemsEvent.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     44        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
     45PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
     46
     47$(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h: include/rtems++/rtemsInterrupt.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     48        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
     49PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
     50
     51$(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h: include/rtems++/rtemsMessageQueue.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     52        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
     53PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
     54
     55$(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h: include/rtems++/rtemsSemaphore.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     56        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
     57PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
     58
     59$(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h: include/rtems++/rtemsStatusCode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     60        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
     61PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
     62
     63$(PROJECT_INCLUDE)/rtems++/rtemsTask.h: include/rtems++/rtemsTask.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     64        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
     65PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
     66
     67$(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h: include/rtems++/rtemsTaskMode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     68        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
     69PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
     70
     71$(PROJECT_INCLUDE)/rtems++/rtemsTimer.h: include/rtems++/rtemsTimer.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
     72        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
     73PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
     74
     75${PROJECT_RELEASE}/lib/librtems++$(LIB_VARIANT).a: $(ARCH)/librtems++$(LIB_VARIANT).a ${PROJECT_RELEASE}/lib/$(dirstamp)
     76        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/librtems++$(LIB_VARIANT).a
     77TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/librtems++$(LIB_VARIANT).a
     78endif
     79
    5380include $(top_srcdir)/../automake/local.am
Note: See TracChangeset for help on using the changeset viewer.