bug 4548
[scilab.git] / scilab / modules / dynamic_link / src / scripts / Makedll.incl
1 #--- see examples/addinter-tutorial-so ----------
2
3 DUMPEXTS="$(SCIDIR1)\bin\dumpexts"
4 SCIIMPLIB="$(SCIDIR)/bin/LibScilab.lib"
5
6 all :: $(LIBRARY).dll
7
8 $(LIBRARY).dll: $(OBJS_WITH_PATH)
9         @echo Creation of dll $(LIBRARY).dll and import lib from ...
10         @echo $(OBJS)
11         $(DUMPEXTS) -o "$*.def" "$*.dll" $(OBJS_WITH_PATH)
12         $(LINKER) $(LINKER_FLAGS) $(OBJS_WITH_PATH) $(OTHERLIBS) \
13 $(SCIIMPLIB) $(FORTRAN_RUNTIME_LIBRARIES) $(SCILAB_LIBS) \
14 $(EXTRA_LDFLAGS) /nologo /dll /out:"$*.dll" /implib:"$*.lib" /def:"$*.def" 
15
16 clean   ::
17         -del "$(DIR_OBJ)\*.obj"
18         -del $(LIBRARY)_gateway.c
19         -del $(LIBRARY).def
20         -del $(LIBRARY).dll
21         -del $(LIBRARY).exp
22         -del $(LIBRARY).lib
23
24 distclean::     clean
25
26 tests   : $(LIBRARY).dll $(LIBRARY).tst
27         @"$(SCIDIR1)\bin\scilex.exe" -nwni  -e scitest('$(LIBRARY).tst',%t);quit;
28
29 #       @"$(SCIDIR1)\bin\scilex.exe" -f $(LIBRARY).tst 
30