1 | #-- start of libary ---------------------- |
---|
2 | |
---|
3 | ${CONSTITUENT}LIB :: $(${CONSTITUENT}lib) $(${CONSTITUENT}shstamp) |
---|
4 | @if test "${PRINT_PREREQUISITES}" = "1"; then \ |
---|
5 | echo "------> Triggering dependencies: $?"; \ |
---|
6 | fi |
---|
7 | @/bin/echo "------> ${CONSTITUENT} : library ok" |
---|
8 | |
---|
9 | $(${CONSTITUENT}lib) :: ${OBJS} |
---|
10 | @if test "${PRINT_PREREQUISITES}" = "1"; then \ |
---|
11 | echo "------> Triggering dependencies: $?"; \ |
---|
12 | fi |
---|
13 | $(lib_echo) library |
---|
14 | $(lib_silent) cd $(bin); \ |
---|
15 | $(ar) $(${CONSTITUENT}lib) $? |
---|
16 | $(lib_silent) $(ranlib) $(${CONSTITUENT}lib) |
---|
17 | $(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp) |
---|
18 | |
---|
19 | #------------------------------------------------------------------ |
---|
20 | # Future improvement? to empty the object files after |
---|
21 | # storing in the library |
---|
22 | # |
---|
23 | ## for f in $?; do \ |
---|
24 | ## rm $${f}; touch $${f}; \ |
---|
25 | ## done |
---|
26 | #------------------------------------------------------------------ |
---|
27 | |
---|
28 | # |
---|
29 | # We add one level of dependency upon the true shared library |
---|
30 | # (rather than simply upon the stamp file) |
---|
31 | # this is for cases where the shared library has not been built |
---|
32 | # while the stamp was created (error??) |
---|
33 | # |
---|
34 | |
---|
35 | $(${CONSTITUENT}libname).$(shlibsuffix) :: $(${CONSTITUENT}lib) requirements $(use_requirements) $(${CONSTITUENT}stamps) |
---|
36 | @if test "${PRINT_PREREQUISITES}" = "1"; then \ |
---|
37 | echo "------> Triggering dependencies: $?"; \ |
---|
38 | fi |
---|
39 | $(lib_silent) cd $(bin); QUIET=$(QUIET); $(make_shlib) "$(tags)" ${CONSTITUENT} $(${CONSTITUENT}_shlibflags) |
---|
40 | |
---|
41 | $(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}libname).$(shlibsuffix) |
---|
42 | @if test -f $(${CONSTITUENT}libname).$(shlibsuffix) ; then cat /dev/null >$(${CONSTITUENT}shstamp) ; fi |
---|
43 | |
---|
44 | ${CONSTITUENT}clean :: |
---|
45 | $(cleanup_echo) objects |
---|
46 | $(cleanup_silent) cd $(bin); /bin/rm -f ${OBJS} |
---|
47 | $(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make |
---|
48 | |
---|
49 | #----------------------------------------------------------------- |
---|
50 | # |
---|
51 | # New section for automatic installation |
---|
52 | # |
---|
53 | #----------------------------------------------------------------- |
---|
54 | |
---|
55 | install_dir = ${CMTINSTALLAREA}/$(tag)/lib |
---|
56 | ${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).$(shlibsuffix) |
---|
57 | |
---|
58 | ${CONSTITUENT} :: ${CONSTITUENT}install |
---|
59 | |
---|
60 | install :: ${CONSTITUENT}install |
---|
61 | |
---|
62 | ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) |
---|
63 | @if test ! "${CMTINSTALLAREA}" = ""; then\ |
---|
64 | echo "installation done"; \ |
---|
65 | fi |
---|
66 | |
---|
67 | $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
68 | @if test ! "${CMTINSTALLAREA}" = ""; then \ |
---|
69 | $(cmt_install_action) \ |
---|
70 | -source "`(cd $(bin); pwd)`" \ |
---|
71 | -name "$(${CONSTITUENT}installname)" \ |
---|
72 | -out "$(install_dir)" \ |
---|
73 | -cmd "$(cmt_installarea_command)" \ |
---|
74 | -cmtpath "$($(package)_cmtpath)" ; \ |
---|
75 | fi |
---|
76 | |
---|
77 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
78 | |
---|
79 | uninstall :: ${CONSTITUENT}uninstall |
---|
80 | |
---|
81 | ${CONSTITUENT}uninstall :: |
---|
82 | @if test ! "${CMTINSTALLAREA}" = ""; then \ |
---|
83 | $(cmt_uninstall_action) \ |
---|
84 | -source "`(cd $(bin); pwd)`" \ |
---|
85 | -name "$(${CONSTITUENT}installname)" \ |
---|
86 | -out "$(install_dir)" \ |
---|
87 | -cmtpath "$($(package)_cmtpath)" ; \ |
---|
88 | fi |
---|
89 | |
---|
90 | |
---|
91 | #-- end of libary ----------------------- |
---|