462bdaf0c7ddfbee1973b62f64ae69e2db14bc52
[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) $(SCIIMPLIB) $(SCILAB_LIBS) $(EXTRA_LDFLAGS) /nologo /dll /out:"$*.dll" /implib:"$*.lib" /def:"$*.def" 
13
14 clean   ::
15         -del "$(DIR_OBJ)\*.obj"
16         -del $(LIBRARY)_gateway.c
17         -del $(LIBRARY).def
18         -del $(LIBRARY).dll
19         -del $(LIBRARY).exp
20         -del $(LIBRARY).lib
21
22 distclean::     clean
23
24 tests   : $(LIBRARY).dll $(LIBRARY).tst
25         @"$(SCIDIR1)\bin\scilex.exe" -nwni  -e scitest('$(LIBRARY).tst',%t);quit;
26
27 #       @"$(SCIDIR1)\bin\scilex.exe" -f $(LIBRARY).tst 
28