source: CMT/HEAD/mgr/fragments/library_no_share @ 593

Last change on this file since 593 was 593, checked in by rybkin, 13 years ago

See C.L. 470

  • Property svn:eol-style set to native
File size: 2.2 KB
RevLine 
[2]1#-- start of library_no_share ------
2
3${CONSTITUENT}LIB :: $(${CONSTITUENT}lib)
[441]4        $(echo) "${CONSTITUENT} : library ok"
[2]5
6$(${CONSTITUENT}lib) :: ${OBJS}
[469]7        $(lib_echo) "static library $@"
8        $(lib_silent) $(ar) $(${CONSTITUENT}lib) $?
[2]9        $(lib_silent) $(ranlib) $(${CONSTITUENT}lib)
10        $(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp)
11
12#------------------------------------------------------------------
13#  Future improvement? to empty the object files after
14#  storing in the library
15#
16##        for f in $?; do \
17##          rm $${f}; touch $${f}; \
18##        done
19#------------------------------------------------------------------
20
21#-----------------------------------------------------------------
22#
23#  New section for automatic installation
24#
25#-----------------------------------------------------------------
26
27install_dir = ${CMTINSTALLAREA}/$(tag)/lib
28${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).a
29
[593]30${CONSTITUENT} :: ${CONSTITUENT}install ;
[2]31
[593]32install :: ${CONSTITUENT}install ;
[2]33
34${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
[441]35ifdef CMTINSTALLAREA
36        $(echo) "installation done"
37endif
[2]38
39$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
[441]40ifdef CMTINSTALLAREA
41        $(install_silent) $(cmt_install_action) \
[2]42            -source "`(cd $(bin); pwd)`" \
43            -name "$(${CONSTITUENT}installname)" \
44            -out "$(install_dir)" \
45            -cmd "$(cmt_installarea_command)" \
[441]46            -cmtpath "$($(package)_cmtpath)"
47endif
[2]48
49##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
50
[593]51uninstall :: ${CONSTITUENT}uninstall ;
[2]52
53${CONSTITUENT}uninstall ::
[441]54ifdef CMTINSTALLAREA
55        $(cleanup_silent) $(cmt_uninstall_action) \
[2]56            -source "`(cd $(bin); pwd)`" \
57            -name "$(${CONSTITUENT}installname)" \
58            -out "$(install_dir)" \
[441]59            -cmtpath "$($(package)_cmtpath)"
60endif
[2]61
62${CONSTITUENT}clean ::
[487]63        $(cleanup_echo) objects ${CONSTITUENT}
[469]64        $(cleanup_silent) /bin/rm -f ${OBJS}
[487]65        $(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS})
66        $(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make
67#       $(cleanup_echo) ${OBJS}
68#       $(cleanup_silent) /bin/rm -f ${OBJS}
[2]69
70#-- end of library_no_share ------
Note: See TracBrowser for help on using the repository browser.