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 | |
---|
27 | install_dir = ${CMTINSTALLAREA}/$(tag)/lib |
---|
28 | ${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).a |
---|
29 | |
---|
30 | ${CONSTITUENT} :: ${CONSTITUENT}install ; |
---|
31 | |
---|
32 | install :: ${CONSTITUENT}install ; |
---|
33 | |
---|
34 | ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) |
---|
35 | ifdef CMTINSTALLAREA |
---|
36 | $(echo) "installation done" |
---|
37 | endif |
---|
38 | |
---|
39 | $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
40 | ifdef 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)" |
---|
47 | endif |
---|
48 | |
---|
49 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
50 | |
---|
51 | uninstall :: ${CONSTITUENT}uninstall ; |
---|
52 | |
---|
53 | ${CONSTITUENT}uninstall :: |
---|
54 | ifdef CMTINSTALLAREA |
---|
55 | $(cleanup_silent) $(cmt_uninstall_action) \ |
---|
56 | -source "`(cd $(bin); pwd)`" \ |
---|
57 | -name "$(${CONSTITUENT}installname)" \ |
---|
58 | -out "$(install_dir)" \ |
---|
59 | -cmtpath "$($(package)_cmtpath)" |
---|
60 | endif |
---|
61 | |
---|
62 | ${CONSTITUENT}clean :: |
---|
63 | $(cleanup_echo) objects ${CONSTITUENT} |
---|
64 | $(cleanup_silent) /bin/rm -f ${OBJS} |
---|
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} |
---|
69 | |
---|
70 | #-- end of library_no_share ------ |
---|