#============================================================= # Allan CORNET - DIGITEO - 2009 - 2010 #============================================================= # generated by builder.sce (MinGW): Please do not edit this file # see TEMPLATE makefile for MINGW # see scripts/TEMPLATE_MAKEFILE.MINGW #============================================================= all: MAKE=make -f Makelib #============================================================= GCCLIBDIR = "D:\Utilisateurs\Public\gcc\i686-pc-mingw32\lib" SCIDIR = D:/UTILIS~1/martint/MESPRO~1/SCILAB~1.2 SCIDIR1 = D:\UTILIS~1\martint\MESPRO~1\SCILAB~1.2 SCIMINGWLIBDIR = D:\UTILIS~1\martint\AppData\Roaming\Scilab\scilab-5.5.2\mingwlib DUMPEXTS = "$(SCIDIR1)\bin\dumpexts" XCOS_LIBS = -lscicos -lscicos_blocks -lscicos_blocks_f -lscicos_f #============================================================= CC = i686-pc-mingw32-gcc.exe FC = i686-pc-mingw32-gfortran.exe LINKER = i686-pc-mingw32-gcc.exe OBJ = o #============================================================= CC_COMMON = -DWIN32 -D_MSC_VER -DSTRICT -DFORDLL $(INCLUDES) CC_OPTIONS = -c $(CC_COMMON) -m32 FC_OPTIONS = -c CC_LDFLAGS = CFLAGS = $(CC_OPTIONS) -I"D:\Utilisateurs\martint\MesProgrammes\CelestLab\trunk\EXTENSION\sci_gateway\cpp\../../src/cpp" FFLAGS = $(FC_OPTIONS) #============================================================= LINKER_FLAGS = --shared $(OBJS) -L$(GCCLIBDIR) -L$(SCIMINGWLIBDIR) -lstdc++ -lgfortran $(SCILAB_LIBS) $(XCOS_LIBS) EXTRA_LDFLAGS = #============================================================= # name of the dll to be built LIBRARY = celestlabx_cpp #============================================================= # list of files FILES_SRC = celestlabx_cpp.c sci_CLx_intern_installed.cpp sci_CLx_tle_intern_getconst.cpp sci_CLx_tle_intern_sgp4.cpp sci_CLx_tle_intern_unkozai.cpp #============================================================= # list of objects file OBJS = celestlabx_cpp.o sci_CLx_intern_installed.o sci_CLx_tle_intern_getconst.o sci_CLx_tle_intern_sgp4.o sci_CLx_tle_intern_unkozai.o #============================================================= # added libraries OTHERLIBS = ..\..\src\cpp\libCLx_tle.a #============================================================= # include options INCLUDES=-I"$(SCIDIR)/libs/MALLOC/includes" \ -I"$(SCIDIR)/modules/core/includes" \ -I"$(SCIDIR)/modules/api_scilab/includes" \ -I"$(SCIDIR)/modules/call_scilab/includes" \ -I"$(SCIDIR)/modules/output_stream/includes" \ -I"$(SCIDIR)/modules/jvm/includes" \ -I"$(SCIDIR)/modules/localization/includes" \ -I"$(SCIDIR)/modules/dynamic_link/includes" \ -I"$(SCIDIR)/modules/mexlib/includes" \ -I"$(SCIDIR)/modules/time/includes" \ -I"$(SCIDIR)/modules/windows_tools/includes" \ -I"$(SCIDIR)/libs/f2c" \ -I"$(SCIDIR)/libs/hashtable" \ -I"$(SCIDIR)/libs/intl" #============================================================= # Libraries SCILAB_LIBS = -lMALLOC -lblasplus \ -lf2c -llapack \ -lcore -lcore_f \ -lintersci -loutput_stream \ -ldynamic_link -linteger \ -loptimization_f -ljvm \ -lscilocalization -lintl \ -llinpack_f -lcall_scilab \ -ltime -lapi_scilab \ -lscilab_windows #============================================================= .SUFFIXES: .cxx .cc .f90 #============================================================= .cxx.$(OBJ): @echo ------------- Compile file $< -------------- $(CC) $(CFLAGS) $< #============================================================= .cc.$(OBJ): @echo ------------- Compile file $< -------------- $(CC) $(CFLAGS) $< #============================================================= .cpp.$(OBJ): @echo ------------- Compile file $< -------------- $(CC) $(CFLAGS) $< #============================================================= .c.$(OBJ): @echo ------------- Compile file $< -------------- $(CC) $(CFLAGS) $< #============================================================= .f.$(OBJ): @echo ------------- Compile file $< -------------- $(FC) $(CFLAGS) $< #============================================================= .f90.$(OBJ): @echo ------------- Compile file $< -------------- $(FC) $(CFLAGS) $< #============================================================= all: $(LIBRARY).dll #============================================================= $(LIBRARY).dll: $(OBJS) @echo ------------- Link files -------------- $(LINKER) $(LINKER_FLAGS) -o $(LIBRARY).dll $(OTHERLIBS) -Wl,--out-implib=$(LIBRARY).a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl $(EXTRA_LDFLAGS) #============================================================= clean: del *.bak del *.$(OBJ) del *.dll del *.lib del *.def #============================================================= distclean: del *.bak del *.$(OBJ) del *.dll del *.lib del *.def #=============================================================