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