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 | CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \ |
---|
43 | $(cmt_install_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" "$(cmt_install_area_command)" ; \ |
---|
44 | fi |
---|
45 | |
---|
46 | ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
47 | |
---|
48 | uninstall :: ${CONSTITUENT}uninstall |
---|
49 | |
---|
50 | ${CONSTITUENT}uninstall :: |
---|
51 | @if test ! "${CMTINSTALLAREA}" = ""; then \ |
---|
52 | CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \ |
---|
53 | $(cmt_uninstall_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" ; \ |
---|
54 | fi |
---|
55 | |
---|
56 | ${CONSTITUENT}clean :: |
---|
57 | $(cleanup_echo) ${OBJS} |
---|
58 | $(cleanup_silent) cd $(bin); /bin/rm -f ${OBJS} |
---|
59 | |
---|
60 | #-- end of library_no_share ------ |
---|