Upstream release 4.02a
[rice.git] / lib / mkliball.bat
blob92e00ebc0a8ff09f085841fc160040caf5399dc7
1 rem File:   mkliball.bat
2 rem Author: Rene' Jager
3 rem Update: June 11, 1993
4 rem Info:   utility for generating makefile for RICE library, see makelib.doc;
5 rem         meaning of arguments:
6 rem            %1 : source path
7 rem            %2 : source extension
8 rem            %3 : include path
9 rem            %4 : include extension
10 rem            %5 : object path
11 rem            %6 : object extension
12 rem            %7 : compiler type
13 rem            %8 : library name
15 echo # makefile for %7 RICE-library > makefile
17 echo. >> makefile
19 echo OBJECTS = \        >> makefile
20 echo    %5compile1.%6 \ >> makefile
21 echo    %5compile2.%6 \ >> makefile
22 echo    %5compile3.%6 \ >> makefile
23 echo    %5compile4.%6 \ >> makefile
24 echo    %5destroy.%6  \ >> makefile
25 echo    %5explain.%6  \ >> makefile
26 echo    %5global.%6   \ >> makefile
27 echo    %5infer.%6    \ >> makefile
28 echo    %5load.%6     \ >> makefile
29 echo    %5rebuild.%6  \ >> makefile
30 echo    %5save.%6       >> makefile
32 echo. >> makefile
34 echo HEADERS = \        >> makefile
35 echo    %3compile.%4  \ >> makefile
36 echo    %3define.%4   \ >> makefile
37 echo    %3function.%4 \ >> makefile
38 echo    %3include.%4  \ >> makefile
39 echo    %3rebuild.%4  \ >> makefile
40 echo    %3type.%4     \ >> makefile
41 echo    %3variable.%4   >> makefile
43 echo. >> makefile
45 echo %8: $(OBJECTS) >> makefile
46 echo. >> makefile
48 echo %5compile1.%6: %1compile1.%2 %3compile.%4 $(HEADERS) >> makefile
49 call mklib%7 compile1
51 echo. >> makefile
53 echo %5compile2.%6: %1compile2.%2 %3compile.%4 $(HEADERS) >> makefile
54 call mklib%7 compile2
56 echo. >> makefile
58 echo %5compile3.%6: %1compile3.%2 %3compile.%4 $(HEADERS) >> makefile
59 call mklib%7 compile3
61 echo. >> makefile
63 echo %5compile4.%6: %1compile4.%2 %3compile.%4 $(HEADERS) >> makefile
64 call mklib%7 compile4
66 echo. >> makefile
68 echo %5destroy.%6: %1destroy.%2 $(HEADERS) >> makefile
69 call mklib%7 destroy
71 echo. >> makefile
73 echo %5explain.%6: %1explain.%2 %3rebuild.%4 $(HEADERS) >> makefile
74 call mklib%7 explain
76 echo. >> makefile
78 echo %5global.%6: %1global.%2 $(HEADERS) >> makefile
79 call mklib%7 global
81 echo. >> makefile
83 echo %5infer.%6: %1infer.%2 $(HEADERS) >> makefile
84 call mklib%7 infer
86 echo. >> makefile
88 echo %5load.%6: %1load.%2 $(HEADERS) >> makefile
89 call mklib%7 load
91 echo. >> makefile
93 echo %5rebuild.%6: %1rebuild.%2 %3rebuild.%4 $(HEADERS) >> makefile
94 call mklib%7 rebuild
96 echo. >> makefile
98 echo %5save.%6: %1save.%2 $(HEADERS) >> makefile
99 call mklib%7 save