1 # Set here the desired C compiler and its optimization options
5 # To create Matlab gateway routines
6 # Note: use $(CC) as the mex C compiler
9 HEADERS = caca_Global.h caca_Parameters.h caca_Sparse.h
11 SPSRC = caca_JacobianSP.c \
15 SPOBJ = caca_JacobianSP.o \
20 SRC = caca_Main.c caca_Integrator.c \
21 caca_Function.c caca_Initialize.c \
22 caca_Jacobian.c caca_LinearAlgebra.c\
23 caca_Rates.c caca_Hessian.c \
24 caca_Stoichiom.c caca_Util.c \
27 OBJ = caca_Main.o caca_Integrator.o \
28 caca_Function.o caca_Initialize.o \
29 caca_Jacobian.o caca_LinearAlgebra.o\
30 caca_Rates.o caca_Hessian.o \
31 caca_Stoichiom.o caca_Util.o \
34 STOCHSRC = caca_Stochastic.c
35 STOCHOBJ = caca_Stochastic.o
39 exe: $(HEADERS) $(SPOBJ) $(OBJ)
40 $(CC) $(COPT) $(SPOBJ) $(OBJ) -lm -o caca.exe
42 stochastic:$(HEADERS) $(SPOBJ) $(OBJ) $(STOCHOBJ)
43 $(CC) $(COPT) $(SPOBJ) $(OBJ) $(STOCHOBJ) -lm \
44 -o caca_stochastic.exe
46 mex: $(HEADERS) $(SPOBJ) $(OBJ)
47 $(MEX) CC#$(CC) -O caca_mex_Fun.c -lm $(SPOBJ) $(OBJ)
48 $(MEX) CC#$(CC) -O caca_mex_Jac_SP.c -lm $(SPOBJ) $(OBJ)
49 $(MEX) CC#$(CC) -O caca_mex_Hessian.c -lm $(SPOBJ) $(OBJ)
53 rm -f $(SPOBJ) $(OBJ) caca.exe caca_*.mexglx caca*.dat
56 rm -f $(SPOBJ) $(OBJ) caca.exe caca*.dat \
57 caca_*.c caca_*.h caca_*.map caca_*.mexglx
59 caca_Monitor.o: caca_Monitor.c $(HEADERS)
62 caca_JacobianSP.o: caca_JacobianSP.c $(HEADERS)
65 caca_HessianSP.o: caca_HessianSP.c $(HEADERS)
68 caca_StoichiomSP.o: caca_StoichiomSP.c $(HEADERS)
71 caca_Main.o: caca_Main.c caca_Initialize.o $(HEADERS) $(SPOBJ)
74 caca_Integrator.o: caca_Integrator.c $(HEADERS) $(SPOBJ)
77 caca_Initialize.o: caca_Initialize.c $(HEADERS) $(SPOBJ)
80 caca_Function.o: caca_Function.c $(HEADERS) $(SPOBJ)
83 caca_Stochastic.o: caca_Stochastic.c $(HEADERS) $(SPOBJ)
86 caca_Jacobian.o: caca_Jacobian.c $(HEADERS) $(SPOBJ)
89 caca_LinearAlgebra.o: caca_LinearAlgebra.c $(HEADERS) $(SPOBJ)
92 caca_Rates.o: caca_Rates.c $(HEADERS) $(SPOBJ)
95 caca_Hessian.o: caca_Hessian.c $(HEADERS) $(SPOBJ)
98 caca_Stoichiom.o: caca_Stoichiom.c $(HEADERS) $(SPOBJ)
101 caca_Util.o: caca_Util.c $(HEADERS) $(SPOBJ)