CFLAGS = -Wall -O  -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
FFLAGS = -Wall -O 

CC=cc
FC=g77

.c.o :
	$(CC) $(CFLAGS) -c $<
.f.o :
	$(FC) $(FFLAGS) -c $<

SCCXF = \
add_bo_st.f \
add_pr.f \
add_sm_ei.f \
add_sm_st.f \
allocation.f \
amplitudes.f \
anisonl.f \
anisotropic.f \
beamsections.f \
bodyadd.f \
bodyforce.f \
bounadd.f \
boundaries.f \
bounrem.f \
buckles.f \
calinput.f \
cflux.f \
cfluxes.f \
changedepterm.f \
cident.f \
cloads.f \
conductivities.f \
controlss.f \
couptempdisps.f \
creep.f \
creeps.f \
cychards.f \
cycsymmods.f \
dasol.f \
datest.f \
datri.f \
defplasticities.f \
defplas.f \
densities.f \
depvars.f \
deuldlag.f \
dflux.f \
dfluxes.f \
dgesv.f \
diamtr.f \
dload.f \
dloads.f \
dot.f \
dredu.f \
drfftf.f \
dsort.f \
dspgv.f \
dynamics.f \
elastics.f \
elements.f \
elprints.f \
envtemp.f \
equations.f \
expansions.f \
extrapolate.f \
e_c3d.f \
e_c3d_th.f \
e_c3d_rhs.f \
e_c3d_rhs_th.f \
fcrit.f \
film.f \
films.f \
finpro.f \
fluidsections.f \
forcadd.f \
frd.f \
frdclose.f \
frdphase.f \
frequencies.f \
fsub.f \
fsuper.f \
gaps.f \
gen3dboun.f \
gen3dconnect.f \
gen3delem.f \
gen3dforc.f \
gen3dfrom1d.f \
gen3dfrom2d.f \
gen3dmpc.f \
gen3dnor.f \
gen3dtemp.f \
generatecycmpcs.f \
genran.f \
getnewline.f \
getnexline.f \
graph.f \
headings.f \
heattransfers.f \
hyperel.f \
hyperelastics.f \
hyperfoams.f \
ident.f \
ident2.f \
identamta.f \
includefilename.f \
incplas.f \
initialconditions.f \
inputerror.f \
isorti.f \
isortid.f \
isortiddc1.f \
isortiddc2.f \
isortii.f \
isortiid.f \
keystart.f \
label.f \
linel.f \
linkdissimilar.f \
lintemp.f \
lintemp_th.f \
loadadd.f \
loadaddt.f \
mafillpr.f \
mafillsm.f \
mafillsmcs.f \
map3dto1d2d.f \
matdata_co.f \
matdata_he.f \
matdata_tg.f \
materialdata.f \
materials.f \
modaldampings.f \
modaldynamics.f \
mpcs.f \
mult.f \
nident.f \
nident2.f \
near2d.f \
newton.f \
noanalysis.f \
nodalthicknesses.f \
nodeprints.f \
nodes.f \
noelfiles.f \
noelsets.f \
nonlinmpc.f \
normals.f \
norshell6.f \
norshell8.f \
number.f \
onf.f \
op.f \
opcs.f \
openfile.f \
orientations.f \
orthonl.f \
orthotropic.f \
out.f \
parser.f \
physicalconstants.f \
planempc.f \
plastics.f \
plcopy.f \
plinterpol.f \
plmix.f \
polynom.f \
printout.f \
printoutelem.f \
printoutint.f \
printoutnode.f \
profil.f \
radflowload.f \
radiate.f \
radiates.f \
ranewr.f \
rearrange.f \
rectcyl.f \
renumber.f \
restartread.f \
restarts.f \
restartshort.f \
restartwrite.f \
results.f \
rhs.f \
rigidbodies.f \
rigidmpc.f \
rootls.f \
rs.f \
rubber.f \
saxpb.f \
selcycsymmods.f \
shape3tri.f \
shape4q.f \
shape4tet.f \
shape6tri.f \
shape6w.f \
shape8h.f \
shape8q.f \
shape10tet.f \
shape15w.f \
shape20h.f \
shellsections.f \
sigini.f \
skip.f \
solidsections.f \
spcmatch.f \
specificheats.f \
splitline.f \
statics.f \
steadystatedynamics.f \
steps.f \
stiff2mat.f \
stop.f \
storeresidual.f \
str2mat.f \
straighteq.f \
straightmpc.f \
surfaces.f \
temperatures.f \
tempload.f \
temploadmodal.f \
ties.f \
transformatrix.f \
transforms.f \
triangulate.f \
uboun.f \
ucreep.f \
uhardening.f \
umat.f \
umat_abaqus.f \
umat_abaqusnl.f \
umat_aniso_creep.f \
umat_aniso_plas.f \
umat_elastic_fiber.f \
umat_gurson.f \
umat_lin_iso_el.f \
umat_main.f \
umat_single_crystal.f \
umat_user.f \
umat_walker.f \
umpc_dist.f \
umpc_gap.f \
umpc_mean_rot.f \
umpc_user.f \
uout.f \
usermaterials.f \
usermpc.f \
utemp.f \
viscos.f \
wcoef.f \
writebv.f \
writeev.f \
writeevcs.f \
writehe.f \
writeim.f \
writeinput.f \
writempc.f \
writere.f \
writesummary.f

SCCXC = \
arpack.c \
arpackbu.c \
arpackcs.c \
calcresidual.c \
cascade.c \
checkconvergence.c \
dyna.c \
dynboun.c \
expand.c \
frdcyc.c \
insert.c \
mastruct.c \
mastructcs.c \
matrixstorage.c \
nonlingeo.c \
pcgsolver.c \
preiter.c \
prespooles.c \
profile.c \
radcyc.c \
readinput.c \
remastruct.c \
sgi.c \
spooles.c \
steadystate.c \
strcmp1.c \
strcpy1.c \
tau.c \
u_calloc.c

SCCXMAIN = ccx_1.5.c

OCCXF = $(SCCXF:.f=.o)
OCCXC = $(SCCXC:.c=.o)
OCCXMAIN = $(SCCXMAIN:.c=.o)

DIR=../../../SPOOLES.2.2

LIBS = \
       $(DIR)/spooles.a \
	../../../ARPACK/libarpack_INTEL.a \
       -lm

ccx_1.5: $(OCCXMAIN) ccx_1.5.a  $(LIBS)
	g77 -Wall -O  -o $@ $(OCCXMAIN) ccx_1.5.a  $(LIBS)

ccx_1.5.a: $(OCCXF) $(OCCXC)
	ar vr $@ $?
                                                                               
