File: Makefile

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (77 lines) | stat: -rw-r--r-- 2,354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
SCIDIR=../../..

include $(SCIDIR)/Makefile.incl

CFLAGS = $(CC_OPTIONS) $(CC_PICFLAGS) -I$(SCIDIR)/routines
FFLAGS = $(FC_OPTIONS) $(FC_PICFLAGS) -I$(SCIDIR)/routines

################# List of source mexfiles ######################
CMEXSOURCES = mexfunction1.c mexfunction2.c mexfunction3.c \
	mexfunction4.c mexfunction5.c mexfunction6.c \
	mexfunction7.c mexfunction8.c mexfunction9.c \
	mexfunction10.c mexfunction11.c  mexfunction12.c  \
	mexfunction13.c 

FORTRANMEXSOURCES = 

################# List of associated Scilab functions  ##########
#               (= by default the name of the mexfunction)      #
FCTS = $(CMEXSOURCES:.c=) $(FORTRANMEXSOURCES:.f=)

################## List of routines used by the mexfiles ########
OTHERCSOURCES = 
OTHERFORTRANSOURCES = 

################## Name of startup file (default = "startup.sce") #

STARTUP = startup
################## Name of gateway file (default = "generic_gateway.c #

GENERIC = generic
########## Do not edit below this line #############

MEXOBJS = $(CMEXSOURCES:.c=.o) $(FORTRANMEXSOURCES:.f=.o)

OTHEROBJS = $(OTHERCSOURCES:.c=.o) $(OTHERFORTRANSOURCES:.f=.o)

OTHERSOURCES = $(OTHERCSOURCES) $(OTHERFORTRANSOURCES)

MEXSOURCES = $(CMEXSOURCES) $(FORTRANMEXSOURCES)

OBJS = $(MEXOBJS) $(OTHEROBJS) $(GENERIC)_gateway.o

all	:: all_nomes message

all_nomes : $(GENERIC)_gateway.c $(OBJS) $(STARTUP).sce 

clean	::
	$(RM) *.o so_locations $(STARTUP).sce $(GENERIC)_gateway.c

distclean ::
	$(RM) *.o so_locations $(STARTUP).sce $(GENERIC)_gateway.c

$(GENERIC)_gateway.c $(STARTUP).sce : Makefile 
	@echo "-- Generating the C function $(GENERIC)_gateway.c";
	@echo "-- ... and the Scilab script $(STARTUP).sce";
	@echo $(FCTS) > tmp_arg1;
	@echo $(OTHEROBJS) > tmp_arg2;
	@echo $(MEXSOURCES) > tmp_arg3; 
	@echo $(STARTUP) $(GENERIC) > tmp_arg4;
	@$(SCIDIR)/macros/Gengatsce Xtmp_arg1 Xtmp_arg2 Xtmp_arg3 Xtmp_arg4;
	@$(RM) tmp_arg1 tmp_arg2 tmp_arg3 tmp_arg4; 

message:
	@echo "------------------------------------------";
	@echo "To load $(FCTS)";
	@echo "        functions, at Scilab prompt, enter:";
	@echo "-->exec $(STARTUP).sce";
	@echo "------------------------------------------";

rmold:
	$(RM) $(GENERIC)_gateway.c $(STARTUP).sce

tests	:  mexobjs.dia

mexobjs.dia	: mexobjs.tst $(OBJS)  $(STARTUP).sce all_nomes 
	@$(SCIDIR)/util/scidem $(SCIDIR) mexobjs.tst mexobjs.dia