source: CMT/v1r18p20041201/mgr/fragments/nmake/library @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 2.3 KB
Line 
1
2${CONSTITUENT}LIB :: $(${CONSTITUENT}shstamp)
3        @echo "------> ${CONSTITUENT} : library ok"
4
5$(${CONSTITUENT}arc) :: ${OBJS}
6        $(lib_echo) library
7        $(lib_silent) $(ar) /out:$(bin)${CONSTITUENT}.arc @<<
8${OBJS}
9<<
10        echo "" >$(${CONSTITUENT}stamp)
11
12$(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}arc) requirements $(use_requirements) $(${CONSTITUENT}stamps)
13        $(make_shlib) $(tag) ${CONSTITUENT} $(cpplinkflags) $(${CONSTITUENT}_shlibflags)
14        if exist $(bin)${CONSTITUENT}.dll echo "" >$(${CONSTITUENT}shstamp)
15
16${CONSTITUENT}clean ::
17        $(cleanup_echo) #objects
18        $(cleanup_silent) for %f in (${OBJS}) do if exist %f del %f
19        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.arc del $(bin)${CONSTITUENT}.arc
20        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.lib del $(bin)${CONSTITUENT}.lib
21        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.def del $(bin)${CONSTITUENT}.def
22        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.exp del $(bin)${CONSTITUENT}.exp
23        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.dll del $(bin)${CONSTITUENT}.dll
24
25
26install_dir = $(CMTINSTALLAREA)\$(tag)\lib
27${CONSTITUENT}installlibname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib
28${CONSTITUENT}installdllname = $(library_prefix)${CONSTITUENT}$(library_suffix).dll
29
30${CONSTITUENT} :: ${CONSTITUENT}install
31
32install :: ${CONSTITUENT}install
33
34${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname)
35        @if NOT "$(CMTINSTALLAREA)"=="" echo "installation done"
36
37$(install_dir)\$(${CONSTITUENT}installlibname) :: $(bin)$(${CONSTITUENT}installlibname)
38        @if NOT "$(CMTINSTALLAREA)"=="" $(cmt_install_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installlibname)" "$(install_dir)"
39
40$(install_dir)\$(${CONSTITUENT}installdllname) :: $(bin)$(${CONSTITUENT}installdllname)
41        @if NOT "$(CMTINSTALLAREA)"=="" $(cmt_install_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installdllname)" "$(install_dir)"
42
43${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
44
45uninstall :: ${CONSTITUENT}uninstall
46
47${CONSTITUENT}uninstall ::
48        @if NOT "$(CMTINSTALLAREA)"=="" $(cmt_uninstall_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installlibname)" "$(install_dir)"
49        @if NOT "$(CMTINSTALLAREA)"=="" $(cmt_uninstall_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installdllname)" "$(install_dir)"
50
51
52
53
Note: See TracBrowser for help on using the repository browser.