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

Last change on this file since 469 was 469, checked in by rybkin, 16 years ago

See C.L. 370

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1#-- start of library_no_share ------
2
3${CONSTITUENT}LIB :: $(${CONSTITUENT}lib)
4        $(echo) "${CONSTITUENT} : library ok"
5
6$(${CONSTITUENT}lib) :: ${OBJS}
7        $(lib_echo) "static library $@"
8        $(lib_silent) $(ar) $(${CONSTITUENT}lib) $?
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
30${CONSTITUENT} :: ${CONSTITUENT}install
31
32install :: ${CONSTITUENT}install
33
34${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
35ifdef CMTINSTALLAREA
36        $(echo) "installation done"
37endif
38
39$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
40ifdef CMTINSTALLAREA
41        $(install_silent) $(cmt_install_action) \
42            -source "`(cd $(bin); pwd)`" \
43            -name "$(${CONSTITUENT}installname)" \
44            -out "$(install_dir)" \
45            -cmd "$(cmt_installarea_command)" \
46            -cmtpath "$($(package)_cmtpath)"
47endif
48
49##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
50
51uninstall :: ${CONSTITUENT}uninstall
52
53${CONSTITUENT}uninstall ::
54ifdef CMTINSTALLAREA
55        $(cleanup_silent) $(cmt_uninstall_action) \
56            -source "`(cd $(bin); pwd)`" \
57            -name "$(${CONSTITUENT}installname)" \
58            -out "$(install_dir)" \
59            -cmtpath "$($(package)_cmtpath)"
60endif
61
62${CONSTITUENT}clean ::
63        $(cleanup_echo) ${OBJS}
64        $(cleanup_silent) /bin/rm -f ${OBJS}
65
66#-- end of library_no_share ------
Note: See TracBrowser for help on using the repository browser.