1 | #-- start of library_no_share ------ |
---|
2 | |
---|
3 | ${CONSTITUENT}LIB :: $(${CONSTITUENT}lib) |
---|
4 | @/bin/echo ${CONSTITUENT} : library ok |
---|
5 | |
---|
6 | $(${CONSTITUENT}lib) :: ${OBJS} |
---|
7 | $(lib_echo) library |
---|
8 | $(lib_silent) cd $(bin); \ |
---|
9 | $(ar) $(${CONSTITUENT}lib) $? |
---|
10 | $(lib_silent) $(ranlib) $(${CONSTITUENT}lib) |
---|
11 | $(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp) |
---|
12 | |
---|
13 | #------------------------------------------------------------------ |
---|
14 | # Future improvement? to empty the object files after |
---|
15 | # storing in the library |
---|
16 | # |
---|
17 | ## for f in $?; do \ |
---|
18 | ## rm $${f}; touch $${f}; \ |
---|
19 | ## done |
---|
20 | #------------------------------------------------------------------ |
---|
21 | |
---|
22 | #----------------------------------------------------------------- |
---|
23 | # |
---|
24 | # New section for automatic installation |
---|
25 | # |
---|
26 | #----------------------------------------------------------------- |
---|
27 | |
---|
28 | install_dir = ${CMTINSTALLAREA}/$(tag)/lib |
---|
29 | ${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).a |
---|
30 | |
---|
31 | ${CONSTITUENT} :: ${CONSTITUENT}install |
---|
32 | |
---|
33 | install :: ${CONSTITUENT}install |
---|
34 | |
---|
35 | ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) |
---|
36 | @if test ! "${CMTINSTALLAREA}" = ""; then\ |
---|
37 | echo "installation done"; \ |
---|
38 | fi |
---|
39 | |
---|
40 | $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
41 | @if test ! "${CMTINSTALLAREA}" = ""; then \ |
---|
42 | $(cmt_install_action) \ |
---|
43 | -source "`(cd $(bin); pwd)`" \ |
---|
44 | -name "$(${CONSTITUENT}installname)" \ |
---|
45 | -out "$(install_dir)" \ |
---|
46 | -cmd "$(cmt_installarea_command)" \ |
---|
47 | -cmtpath "$($(package)_cmtpath)" ; \ |
---|
48 | fi |
---|
49 | |
---|
50 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
51 | |
---|
52 | uninstall :: ${CONSTITUENT}uninstall |
---|
53 | |
---|
54 | ${CONSTITUENT}uninstall :: |
---|
55 | @if test ! "${CMTINSTALLAREA}" = ""; then \ |
---|
56 | $(cmt_uninstall_action) \ |
---|
57 | -source "`(cd $(bin); pwd)`" \ |
---|
58 | -name "$(${CONSTITUENT}installname)" \ |
---|
59 | -out "$(install_dir)" \ |
---|
60 | -cmtpath "$($(package)_cmtpath)" ; \ |
---|
61 | fi |
---|
62 | |
---|
63 | ${CONSTITUENT}clean :: |
---|
64 | $(cleanup_echo) ${OBJS} |
---|
65 | $(cleanup_silent) cd $(bin); /bin/rm -f ${OBJS} |
---|
66 | |
---|
67 | #-- end of library_no_share ------ |
---|