ilib_for_link, ilib_build do not accept files with ".o" or ".obj" extensions for...
[scilab.git] / scilab / modules / dynamic_link / src / scripts / Makedll.incl
1
2 DUMPEXTS="$(SCIDIR1)\bin\dumpexts"
3 SCIIMPLIB="$(SCIDIR)/bin/LibScilab.lib"
4
5 all :: $(LIBRARY).dll
6
7 $(LIBRARY).dll: $(OBJS_WITH_PATH)
8         @echo Creation of dll $(LIBRARY).dll and import lib from ...
9         @echo $(OBJS)
10         @$(DUMPEXTS) -o "$*.def" "$*.dll" $(OBJS_WITH_PATH)
11         @$(LINKER) $(LINKER_FLAGS) $(OBJS_WITH_PATH) $(OTHERLIBS) \
12 $(SCIIMPLIB) $(SCILAB_LIBS) $(CPP_RUNTIME_LIBRARIES) $(FORTRAN_RUNTIME_LIBRARIES) \
13 $(EXTRA_LDFLAGS) /nologo /dll /out:"$*.dll" /implib:"$*.lib" /def:"$*.def"
14
15 clean   ::
16         -del "$(DIR_OBJ)\*.obj"
17         -del $(LIBRARY)_gateway.c
18         -del $(LIBRARY).def
19         -del $(LIBRARY).dll
20         -del $(LIBRARY).exp
21         -del $(LIBRARY).lib
22
23 distclean::     clean