File: Makefile.amk

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (217 lines) | stat: -rw-r--r-- 5,941 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
SHELL = /bin/sh

SCIDIR=../..
SCIDIR1=..\..

SCIIMPLIB=$(SCIDIR)/bin/LibScilab.lib
INTERSCI=$(SCIDIR1)\bin\intersci

include ../../Makefile.incl.amk 

FFLAGS = $(FC_OPTIONS) -N25 -Dsci_importdll
CFLAGS = $(CC_OPTIONS) -DFORDLL

all:: info

info:
	@echo Type "amake /f Makefile.amk dlls" to compile all programs 
	@echo Type "amake /f Makefile.amk pgm.dll" to compile pgm program

DLLS= ex1.dll ex2.dll ex3.dll ex4.dll ex5.dll ex6.dll \
	ex7.dll ex8.dll ex9.dll ex10.dll ex11.dll ex12.dll \
	ex13.dll ex14.dll ex15.dll ex16.dll

dlls : $(DLLS) 

ex1.dll : ex1fi.obj ex1c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex1fi.obj : ex1fi.desc
	$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f
	
ex2.dll : ex2fi.obj ex2f.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex2fi.obj : ex2fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex3.dll : ex3fi.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex3fi.obj : ex3fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex4.dll : ex4fi.obj ex4f.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex4fi.obj : ex4fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex5.dll : ex5fi.obj ex5f.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex5fi.obj : ex5fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f


ex6.dll : ex6fi.obj ex6c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex6fi.obj : ex6fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex7.dll : ex7fi.obj ex7f.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex7fi.obj : ex7fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex8.dll : ex8fi.obj ex8c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex8fi.obj : ex8fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex9.dll : ex9fi.obj ex9f.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex9fi.obj : ex9fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f


ex10.dll : ex10fi.obj ex10f.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex10fi.obj : ex10fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f


ex11.dll : ex11fi.obj ex11c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex11fi.obj : ex11fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex12.dll : ex12fi.obj ex12c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex12fi.obj : ex12fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex13.dll : ex13fi.obj ex13c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex13fi.obj : ex13fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex14.dll : ex14fi.obj ex14c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex14fi.obj : ex14fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

ex15.dll : ex15fi.obj ex15c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex15fi.obj : ex15fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f


ex16.dll : ex16fi.obj ex16c.obj 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

ex16fi.obj : ex16fi.desc
	@$(INTERSCI) $*
	@$(F77) -c $(FFLAGS) $*.f

clean::
	

distclean::
	@del *.obj 
	@del *.dll
	@del *.ilib 
	@del *.pdk
	@del *.pdb
	@del *.ilk 
	@del *.def
	@del *.exp 

#------------------------------------------------------------

OBJS=ex1c.obj ex2f.obj ex4f.obj ex5f.obj ex6c.obj ex7f.obj ex8c.obj \
	ex9f.obj ex10f.obj ex11c.obj ex12c.obj ex13c.obj ex14c.obj  \
	ex15c.obj ex16c.obj

zallfi.dll : zallfi.obj $(OBJS) 
	@echo Creation of dll $(DLL) and import lib 
	@$(LINKER) -lib -exports:$*.def $?
	@$(LINKER) $? -exports:$*.def $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /dll /out:$*.dll

zallfi.obj : zallfi.desc
	@$(INTERSCI) $* 
	@$(F77) -c $(FFLAGS) $*.f

zallfi.desc : 
	@del zallfi.desc
	copy *.desc  zallfi.desc	

tests	: zallfi.desc zallfi.obj 
	$(SCIDIR1)\bin\scilex.exe  -f zall.sce

distclean:: clean

clean::
	@del zallfi
	@del zallfi.sce 
	@del zallfi.f 
	@del zallfi.obj 
	@del zallfi.dia