3
include $(SCIDIR)/Makefile.incl
5
CFLAGS = $(CC_OPTIONS) $(CC_PICFLAGS) -I$(SCIDIR)/routines
6
FFLAGS = $(FC_OPTIONS) $(FC_PICFLAGS) -I$(SCIDIR)/routines
8
################# List of source mexfiles ######################
9
CMEXSOURCES = mexfunction1.c mexfunction2.c mexfunction3.c \
10
mexfunction4.c mexfunction5.c mexfunction6.c \
11
mexfunction7.c mexfunction8.c mexfunction9.c \
12
mexfunction10.c mexfunction11.c mexfunction12.c \
17
################# List of associated Scilab functions ##########
18
# (= by default the name of the mexfunction) #
19
FCTS = $(CMEXSOURCES:.c=) $(FORTRANMEXSOURCES:.f=)
21
################## List of routines used by the mexfiles ########
25
################## Name of startup file (default = "startup.sce") #
28
################## Name of gateway file (default = "generic_gateway.c #
31
########## Do not edit below this line #############
33
MEXOBJS = $(CMEXSOURCES:.c=.o) $(FORTRANMEXSOURCES:.f=.o)
35
OTHEROBJS = $(OTHERCSOURCES:.c=.o) $(OTHERFORTRANSOURCES:.f=.o)
37
OTHERSOURCES = $(OTHERCSOURCES) $(OTHERFORTRANSOURCES)
39
MEXSOURCES = $(CMEXSOURCES) $(FORTRANMEXSOURCES)
41
OBJS = $(MEXOBJS) $(OTHEROBJS) $(GENERIC)_gateway.o
43
all :: all_nomes message
45
all_nomes : $(GENERIC)_gateway.c $(OBJS) $(STARTUP).sce
48
$(RM) *.o so_locations $(STARTUP).sce $(GENERIC)_gateway.c
51
$(RM) *.o so_locations $(STARTUP).sce $(GENERIC)_gateway.c
53
$(GENERIC)_gateway.c $(STARTUP).sce : Makefile
54
@echo "-- Generating the C function $(GENERIC)_gateway.c";
55
@echo "-- ... and the Scilab script $(STARTUP).sce";
56
@echo $(FCTS) > tmp_arg1;
57
@echo $(OTHEROBJS) > tmp_arg2;
58
@echo $(MEXSOURCES) > tmp_arg3;
59
@echo $(STARTUP) $(GENERIC) > tmp_arg4;
60
@$(SCIDIR)/macros/Gengatsce Xtmp_arg1 Xtmp_arg2 Xtmp_arg3 Xtmp_arg4;
61
@$(RM) tmp_arg1 tmp_arg2 tmp_arg3 tmp_arg4;
64
@echo "------------------------------------------";
65
@echo "To load $(FCTS)";
66
@echo " functions, at Scilab prompt, enter:";
67
@echo "-->exec $(STARTUP).sce";
68
@echo "------------------------------------------";
71
$(RM) $(GENERIC)_gateway.c $(STARTUP).sce
75
mexobjs.dia : mexobjs.tst $(OBJS) $(STARTUP).sce all_nomes
76
@$(SCIDIR)/util/scidem $(SCIDIR) mexobjs.tst mexobjs.dia