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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
#
# pre-Makefile for SCORE
#
# Files and Directories
#
TGTBin = none
LibName = score
LibVers = 1
TGTLib = ${LibDir}/lib${LibName}.a
TGTInc = ${Hdrs} sclexan.h
#
# Compiler/Loader Options
#
UniFlags =
CcFlags = ${COptimize} -I${IncDir} ${MachDepInc}
FcFlags =
LdFlags = ${LDFLAGS}
#
# Files to Save for Backup (make save)
#
SaveFiles = *.c *.h *.r
#
# Files to remove in directory clean (pact clean)
#
CleanFiles = scf77lr.c *~ core
#
# Things upon which install depends (pact install)
#
InstallDep = ${TGTLib} ${TGTShLib}
BinDep =
BinObj =
#
# Source Files
#
FocalLst = score.focal
FocalSrc = ${Hdrs} scctl.c scctla.c scfnca.c scfia.c schash.c scstr.c scpar.c
#
# Required Libraries
#
Libs = ${TGTLib} -lm ${MachDepLib}
#
# Headers Files
#
Hdrs = scstd.h score.h
#
# Object Files
#
Objs = scctl.o scctla.o scfia.o scfnca.o schash.o scpar.o \
scstr.o scf77lr.o scvers.o
ArObjs = ${TGTLib}(scctl.o) ${TGTLib}(scctla.o) ${TGTLib}(scfia.o) \
${TGTLib}(scfnca.o) ${TGTLib}(schash.o) ${TGTLib}(scstr.o) \
${TGTLib}(scpar.o) ${TGTLib}(scf77lr.o) ${TGTLib}(scvers.o)
scf77lr.o : scf77lr.l sclexan.h
scf77lr.pic_o : scf77lr.l sclexan.h
${Objs} : ${Hdrs}
${SharedObjs} : ${Hdrs}
${LibDep} : ${Hdrs}
#
# config
#
config : scctla.c
${CC} -DMM_CONFIG ${LdFlags} scctla.c -o config -lc
#
# shared memory parallel test
#
smp : ${BinDir}/scsmp ${BinDir}/scsmpb
${BinDir}/scsmp : scsmp.c ${TGTLib}
${CC} ${LdFlags} scsmp.c -o ${BinDir}/scsmp ${Libs}
${BinDir}/scsmpb : scsmpb.c ${TGTLib}
${CC} ${LdFlags} scsmpb.c -o ${BinDir}/scsmpb ${Libs}
#
# memory management test
#
mm : ${BinDir}/scmm
${BinDir}/scmm : scmm.c ${TGTLib}
${CC} ${LdFlags} scmm.c -o ${BinDir}/scmm ${Libs}
#
# lexical scanner test
#
scan : ${BinDir}/sclsts
${BinDir}/sclsts : ${TGTLib} sclsts.c
${CC} ${LdFlags} sclsts.c -o ${BinDir}/sclsts ${Libs}
#
# hash/alist test
#
ha : ${BinDir}/scatst
${BinDir}/scatst : ${TGTLib} scatst.c
${CC} ${LdFlags} scatst.c -o ${BinDir}/scatst ${Libs}
#
# fortran hash test
#
fha : ${BinDir}/schtst
${BinDir}/schtst : schtst.f ${TGTLib} ${Hdrs}
${FC} ${FDebug} ${LdFlags} schtst.f -o ${BinDir}/schtst ${Libs}
#
# comprehensive test suite
#
compre : ${BinDir}/tscstr ${BinDir}/tscctl ${BinDir}/tscctla ${BinDir}/interact
${BinDir}/tscstr : ${TGTLib} tscstr.c
${CC} ${LdFlags} tscstr.c -o ${BinDir}/tscstr ${Libs}
${BinDir}/tscctl : ${TGTLib} tscctl.c
${CC} ${LdFlags} tscctl.c -o ${BinDir}/tscctl ${Libs}
${BinDir}/tscctla : ${TGTLib} tscctla.c
${CC} ${LdFlags} tscctla.c -o ${BinDir}/tscctla ${Libs}
${BinDir}/interact : ${TGTLib} interact.c
${CC} ${LdFlags} interact.c -o ${BinDir}/interact ${Libs}
#
# install
#
install: ${InstallDep}
echo incinstal: uptodate ${InstallDep}
pact incinstall
#
# inform
#
inform :
@rm -f required.objs
@echo ${Objs} > required.objs
#
# Run the SCORE test suite
#
test :
@sctest
|