source: CMT/v1r10p20011126/mgr/cmt_make_shlib.bat @ 1

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

Import all tags

File size: 1.1 KB
Line 
1@echo off
2
3rem #
4set bin=..\%1%
5set name=%2%
6
7if not exist %bin%\%name%.arc exit
8
9rem # Retreive other arguments in one "tmplinkopts" file :
10
11set tmplinkopts=%bin%\%name%\tmplinkopts.dat
12
13if exist %tmplinkopts% del %tmplinkopts% 
14
15shift 
16shift
17set empty=''
18
19:next
20set x='%1'
21IF %x% EQU %empty% goto end 
22echo %1 >> %tmplinkopts%
23shift
24goto next
25
26:end
27set empty=
28set x=
29
30set indirectlinkopts=
31if exist %tmplinkopts% set indirectlinkopts=@%tmplinkopts% 
32
33if exist %bin%\%name%\%name%_dll.obj goto component
34
35:linker
36
37%CMTROOT%\%CMTBIN%\cmt.exe build windefs %bin%\%name%.arc >%bin%\%name%.def
38
39lib.exe /nologo /machine:ix86 /def:%bin%\%name%.def /out:%bin%\%name%.lib
40
41if exist %bin%\%name%.dll del %bin%\%name%.dll
42
43link.exe /nologo /dll /out:%bin%\%name%.dll %bin%\%name%.exp %bin%\%name%.arc %indirectlinkopts%
44
45goto return
46
47:component
48
49link.exe /nologo /dll /out:%bin%\%name%.dll %bin%\%name%\%name%_dll.obj %bin%\%name%.arc /machine:ix86 %indirectlinkopts%
50
51:return
52if exist %tmplinkopts% del %tmplinkopts%
53set tmplinkopts=
54
Note: See TracBrowser for help on using the repository browser.