| 1 | greg | 1.2 | # RCSid $Id: Makefile,v 1.1 2018/11/17 22:09:12 greg Exp $ | 
| 2 | greg | 1.1 | # | 
| 3 |  |  | # Render and primitive type testing | 
| 4 |  |  | # | 
| 5 |  |  |  | 
| 6 |  |  | # Image reduction for comparisons | 
| 7 |  |  | RDU_PFILT = pfilt -1 -r 1 -x 128 -y 128 -pa 1 | 
| 8 |  |  |  | 
| 9 |  |  | # Image comparison command | 
| 10 |  |  | IMG_CMP = radcompare -rms 0.08 -max 1.5 | 
| 11 |  |  |  | 
| 12 |  |  | # Default target is to test everything | 
| 13 |  |  | all:    test-dielectric-def test-dielectric-fish test-glass-def \ | 
| 14 |  |  | test-glass-fish test-glass-up test-inst-def test-inst-fish \ | 
| 15 |  |  | test-mesh-def test-mesh-cyl test-mirror-fish test-mist-def \ | 
| 16 |  |  | test-tfunc-def test-tfunc-fish test-trans-def test-trans-fish \ | 
| 17 |  |  | test-trans2-def test-trans2-fish | 
| 18 |  |  |  | 
| 19 |  |  | clean: | 
| 20 | greg | 1.2 | rm -f *.oct *.amb *.dat *_*.hdr *.unf | 
| 21 | greg | 1.1 |  | 
| 22 |  |  | ### Reference and test for dielectric view def ### | 
| 23 |  |  |  | 
| 24 |  |  | test-dielectric-def:    ref/dielectric_def.hdr dielectric_def.hdr | 
| 25 |  |  | $(RDU_PFILT) dielectric_def.hdr | $(IMG_CMP) ref/dielectric_def.hdr - | 
| 26 |  |  |  | 
| 27 |  |  | ref/dielectric_def.hdr: | 
| 28 |  |  | make dielectric_def.hdr | 
| 29 |  |  | $(RDU_PFILT) dielectric_def.hdr > ref/dielectric_def.hdr | 
| 30 |  |  |  | 
| 31 |  |  | dielectric_def.hdr:     dielectric.rif | 
| 32 |  |  | rad -v def dielectric.rif | 
| 33 |  |  |  | 
| 34 |  |  | ### End dielectric-def tests | 
| 35 |  |  |  | 
| 36 |  |  | ### Reference and test for dielectric view fish ### | 
| 37 |  |  |  | 
| 38 |  |  | test-dielectric-fish:   ref/dielectric_fish.hdr dielectric_fish.hdr | 
| 39 |  |  | $(RDU_PFILT) dielectric_fish.hdr | $(IMG_CMP) ref/dielectric_fish.hdr - | 
| 40 |  |  |  | 
| 41 |  |  | ref/dielectric_fish.hdr: | 
| 42 |  |  | make dielectric_fish.hdr | 
| 43 |  |  | $(RDU_PFILT) dielectric_fish.hdr > ref/dielectric_fish.hdr | 
| 44 |  |  |  | 
| 45 |  |  | dielectric_fish.hdr:    dielectric.rif | 
| 46 |  |  | rad -v fish dielectric.rif | 
| 47 |  |  |  | 
| 48 |  |  | ### End dielectric-fish tests | 
| 49 |  |  |  | 
| 50 |  |  | ### Reference and test for glass view def ### | 
| 51 |  |  |  | 
| 52 |  |  | test-glass-def: ref/glass_def.hdr glass_def.hdr | 
| 53 |  |  | $(RDU_PFILT) glass_def.hdr | $(IMG_CMP) ref/glass_def.hdr - | 
| 54 |  |  |  | 
| 55 |  |  | ref/glass_def.hdr: | 
| 56 | greg | 1.2 | make glass_def.hdr | 
| 57 | greg | 1.1 | $(RDU_PFILT) glass_def.hdr > ref/glass_def.hdr | 
| 58 |  |  |  | 
| 59 |  |  | glass_def.hdr:  glass.rif | 
| 60 |  |  | rad -v def glass.rif | 
| 61 |  |  |  | 
| 62 |  |  | ### End glass-def tests | 
| 63 |  |  |  | 
| 64 |  |  | ### Reference and test for glass view fish ### | 
| 65 |  |  |  | 
| 66 |  |  | test-glass-fish:        ref/glass_fish.hdr glass_fish.hdr | 
| 67 |  |  | $(RDU_PFILT) glass_fish.hdr | $(IMG_CMP) ref/glass_fish.hdr - | 
| 68 |  |  |  | 
| 69 |  |  | ref/glass_fish.hdr: | 
| 70 | greg | 1.2 | make glass_fish.hdr | 
| 71 | greg | 1.1 | $(RDU_PFILT) glass_fish.hdr > ref/glass_fish.hdr | 
| 72 |  |  |  | 
| 73 |  |  | glass_fish.hdr: glass.rif | 
| 74 |  |  | rad -v fish glass.rif | 
| 75 |  |  |  | 
| 76 |  |  | ### End glass-fish tests | 
| 77 |  |  |  | 
| 78 |  |  | ### Reference and test for glass view up ### | 
| 79 |  |  |  | 
| 80 |  |  | test-glass-up:  ref/glass_up.hdr glass_up.hdr | 
| 81 |  |  | $(RDU_PFILT) glass_up.hdr | $(IMG_CMP) ref/glass_up.hdr - | 
| 82 |  |  |  | 
| 83 |  |  | ref/glass_up.hdr: | 
| 84 | greg | 1.2 | make glass_up.hdr | 
| 85 | greg | 1.1 | $(RDU_PFILT) glass_up.hdr > ref/glass_up.hdr | 
| 86 |  |  |  | 
| 87 |  |  | glass_up.hdr:   glass.rif | 
| 88 |  |  | rad -v up glass.rif | 
| 89 |  |  |  | 
| 90 |  |  | ### End glass-up tests | 
| 91 |  |  |  | 
| 92 |  |  | ### Reference and test for inst view def ### | 
| 93 |  |  |  | 
| 94 |  |  | test-inst-def:  ref/inst_def.hdr inst_def.hdr | 
| 95 |  |  | $(RDU_PFILT) inst_def.hdr | $(IMG_CMP) ref/inst_def.hdr - | 
| 96 |  |  |  | 
| 97 |  |  | ref/inst_def.hdr: | 
| 98 | greg | 1.2 | make inst_def.hdr | 
| 99 | greg | 1.1 | $(RDU_PFILT) inst_def.hdr > ref/inst_def.hdr | 
| 100 |  |  |  | 
| 101 |  |  | inst_def.hdr:   inst.rif | 
| 102 |  |  | rad -v def inst.rif | 
| 103 |  |  |  | 
| 104 |  |  | ### End inst-def tests | 
| 105 |  |  |  | 
| 106 |  |  | ### Reference and test for inst view fish ### | 
| 107 |  |  |  | 
| 108 |  |  | test-inst-fish: ref/inst_fish.hdr inst_fish.hdr | 
| 109 |  |  | $(RDU_PFILT) inst_fish.hdr | $(IMG_CMP) ref/inst_fish.hdr - | 
| 110 |  |  |  | 
| 111 |  |  | ref/inst_fish.hdr: | 
| 112 | greg | 1.2 | make inst_fish.hdr | 
| 113 | greg | 1.1 | $(RDU_PFILT) inst_fish.hdr > ref/inst_fish.hdr | 
| 114 |  |  |  | 
| 115 |  |  | inst_fish.hdr:  inst.rif | 
| 116 |  |  | rad -v fish inst.rif | 
| 117 |  |  |  | 
| 118 |  |  | ### End inst-fish tests | 
| 119 |  |  |  | 
| 120 |  |  | ### Reference and test for mesh view def ### | 
| 121 |  |  |  | 
| 122 |  |  | test-mesh-def:  ref/mesh_def.hdr mesh_def.hdr | 
| 123 |  |  | $(RDU_PFILT) mesh_def.hdr | $(IMG_CMP) ref/mesh_def.hdr - | 
| 124 |  |  |  | 
| 125 |  |  | ref/mesh_def.hdr: | 
| 126 | greg | 1.2 | make mesh_def.hdr | 
| 127 | greg | 1.1 | $(RDU_PFILT) mesh_def.hdr > ref/mesh_def.hdr | 
| 128 |  |  |  | 
| 129 |  |  | mesh_def.hdr:   mesh.rif | 
| 130 |  |  | rad -v def mesh.rif | 
| 131 |  |  |  | 
| 132 |  |  | ### End mesh-def tests | 
| 133 |  |  |  | 
| 134 |  |  | ### Reference and test for mesh view cyl ### | 
| 135 |  |  |  | 
| 136 |  |  | test-mesh-cyl:  ref/mesh_cyl.hdr mesh_cyl.hdr | 
| 137 |  |  | $(RDU_PFILT) mesh_cyl.hdr | $(IMG_CMP) ref/mesh_cyl.hdr - | 
| 138 |  |  |  | 
| 139 |  |  | ref/mesh_cyl.hdr: | 
| 140 | greg | 1.2 | make mesh_cyl.hdr | 
| 141 | greg | 1.1 | $(RDU_PFILT) mesh_cyl.hdr > ref/mesh_cyl.hdr | 
| 142 |  |  |  | 
| 143 |  |  | mesh_cyl.hdr:   mesh.rif | 
| 144 |  |  | rad -v cyl mesh.rif | 
| 145 |  |  |  | 
| 146 |  |  | ### End mesh-cyl tests | 
| 147 |  |  |  | 
| 148 |  |  | ### Reference and test for mesh view cyl2 ### | 
| 149 |  |  |  | 
| 150 |  |  | test-mesh-cyl2: ref/mesh_cyl2.hdr mesh_cyl2.hdr | 
| 151 |  |  | $(RDU_PFILT) mesh_cyl2.hdr | $(IMG_CMP) ref/mesh_cyl2.hdr - | 
| 152 |  |  |  | 
| 153 |  |  | ref/mesh_cyl2.hdr: | 
| 154 | greg | 1.2 | make mesh_cyl2.hdr | 
| 155 | greg | 1.1 | $(RDU_PFILT) mesh_cyl2.hdr > ref/mesh_cyl2.hdr | 
| 156 |  |  |  | 
| 157 |  |  | mesh_cyl2.hdr:  mesh.rif | 
| 158 |  |  | rad -v cyl2 mesh.rif | 
| 159 |  |  |  | 
| 160 |  |  | ### End mesh-cyl2 tests | 
| 161 |  |  |  | 
| 162 |  |  | ### Reference and test for mirror view fish ### | 
| 163 |  |  |  | 
| 164 |  |  | test-mirror-fish:       ref/mirror_fish.hdr mirror_fish.hdr | 
| 165 |  |  | $(RDU_PFILT) mirror_fish.hdr | $(IMG_CMP) ref/mirror_fish.hdr - | 
| 166 |  |  |  | 
| 167 |  |  | ref/mirror_fish.hdr: | 
| 168 | greg | 1.2 | make mirror_fish.hdr | 
| 169 | greg | 1.1 | $(RDU_PFILT) mirror_fish.hdr > ref/mirror_fish.hdr | 
| 170 |  |  |  | 
| 171 |  |  | mirror_fish.hdr:        mirror.rif | 
| 172 |  |  | rad -v fish mirror.rif | 
| 173 |  |  |  | 
| 174 |  |  | ### End mirror-fish tests | 
| 175 |  |  |  | 
| 176 |  |  | ### Reference and test for mist view def ### | 
| 177 |  |  |  | 
| 178 |  |  | test-mist-def:  ref/mist_def.hdr mist_def.hdr | 
| 179 |  |  | $(RDU_PFILT) mist_def.hdr | $(IMG_CMP) ref/mist_def.hdr - | 
| 180 |  |  |  | 
| 181 |  |  | ref/mist_def.hdr: | 
| 182 | greg | 1.2 | make mist_def.hdr | 
| 183 | greg | 1.1 | $(RDU_PFILT) mist_def.hdr > ref/mist_def.hdr | 
| 184 |  |  |  | 
| 185 |  |  | mist_def.hdr:   mist.rif | 
| 186 |  |  | rad -v def mist.rif | 
| 187 |  |  |  | 
| 188 |  |  | ### End mist-def tests | 
| 189 |  |  |  | 
| 190 |  |  | ### Reference and test for prism1 view fish ### | 
| 191 |  |  |  | 
| 192 |  |  | test-prism1-fish:       ref/prism1_fish.hdr prism1_fish.hdr | 
| 193 |  |  | $(RDU_PFILT) prism1_fish.hdr | $(IMG_CMP) ref/prism1_fish.hdr - | 
| 194 |  |  |  | 
| 195 |  |  | ref/prism1_fish.hdr: | 
| 196 | greg | 1.2 | make prism1_fish.hdr | 
| 197 | greg | 1.1 | $(RDU_PFILT) prism1_fish.hdr > ref/prism1_fish.hdr | 
| 198 |  |  |  | 
| 199 |  |  | prism1_fish.hdr:        prism1.rif | 
| 200 |  |  | rad -v fish prism1.rif | 
| 201 |  |  |  | 
| 202 |  |  | ### End prism1-fish tests | 
| 203 |  |  |  | 
| 204 |  |  | ### Reference and test for prism2 view fish ### | 
| 205 |  |  |  | 
| 206 |  |  | test-prism2-fish:       ref/prism2_fish.hdr prism2_fish.hdr | 
| 207 |  |  | $(RDU_PFILT) prism2_fish.hdr | $(IMG_CMP) ref/prism2_fish.hdr - | 
| 208 |  |  |  | 
| 209 |  |  | ref/prism2_fish.hdr: | 
| 210 | greg | 1.2 | make prism2_fish.hdr | 
| 211 | greg | 1.1 | $(RDU_PFILT) prism2_fish.hdr > ref/prism2_fish.hdr | 
| 212 |  |  |  | 
| 213 |  |  | prism2_fish.hdr:        prism2.rif | 
| 214 |  |  | rad -v fish prism2.rif | 
| 215 |  |  |  | 
| 216 |  |  | ### End prism2-fish tests | 
| 217 |  |  |  | 
| 218 |  |  | ### Reference and test for tfunc view def ### | 
| 219 |  |  |  | 
| 220 |  |  | test-tfunc-def: ref/tfunc_def.hdr tfunc_def.hdr | 
| 221 |  |  | $(RDU_PFILT) tfunc_def.hdr | $(IMG_CMP) ref/tfunc_def.hdr - | 
| 222 |  |  |  | 
| 223 |  |  | ref/tfunc_def.hdr: | 
| 224 | greg | 1.2 | make tfunc_def.hdr | 
| 225 | greg | 1.1 | $(RDU_PFILT) tfunc_def.hdr > ref/tfunc_def.hdr | 
| 226 |  |  |  | 
| 227 |  |  | tfunc_def.hdr:  tfunc.rif | 
| 228 |  |  | rad -v def tfunc.rif | 
| 229 |  |  |  | 
| 230 |  |  | ### End tfunc-def tests | 
| 231 |  |  |  | 
| 232 |  |  | ### Reference and test for tfunc view fish ### | 
| 233 |  |  |  | 
| 234 |  |  | test-tfunc-fish:        ref/tfunc_fish.hdr tfunc_fish.hdr | 
| 235 |  |  | $(RDU_PFILT) tfunc_fish.hdr | $(IMG_CMP) ref/tfunc_fish.hdr - | 
| 236 |  |  |  | 
| 237 |  |  | ref/tfunc_fish.hdr: | 
| 238 | greg | 1.2 | make tfunc_fish.hdr | 
| 239 | greg | 1.1 | $(RDU_PFILT) tfunc_fish.hdr > ref/tfunc_fish.hdr | 
| 240 |  |  |  | 
| 241 |  |  | tfunc_fish.hdr: tfunc.rif | 
| 242 |  |  | rad -v fish tfunc.rif | 
| 243 |  |  |  | 
| 244 |  |  | ### End tfunc-fish tests | 
| 245 |  |  |  | 
| 246 |  |  | ### Reference and test for trans view def ### | 
| 247 |  |  |  | 
| 248 |  |  | test-trans-def: ref/trans_def.hdr trans_def.hdr | 
| 249 |  |  | $(RDU_PFILT) trans_def.hdr | $(IMG_CMP) ref/trans_def.hdr - | 
| 250 |  |  |  | 
| 251 |  |  | ref/trans_def.hdr: | 
| 252 | greg | 1.2 | make trans_def.hdr | 
| 253 | greg | 1.1 | $(RDU_PFILT) trans_def.hdr > ref/trans_def.hdr | 
| 254 |  |  |  | 
| 255 |  |  | trans_def.hdr:  trans.rif | 
| 256 |  |  | rad -v def trans.rif | 
| 257 |  |  |  | 
| 258 |  |  | ### End trans-def tests | 
| 259 |  |  |  | 
| 260 |  |  | ### Reference and test for trans view fish ### | 
| 261 |  |  |  | 
| 262 |  |  | test-trans-fish:        ref/trans_fish.hdr trans_fish.hdr | 
| 263 |  |  | $(RDU_PFILT) trans_fish.hdr | $(IMG_CMP) ref/trans_fish.hdr - | 
| 264 |  |  |  | 
| 265 |  |  | ref/trans_fish.hdr: | 
| 266 | greg | 1.2 | make trans_fish.hdr | 
| 267 | greg | 1.1 | $(RDU_PFILT) trans_fish.hdr > ref/trans_fish.hdr | 
| 268 |  |  |  | 
| 269 |  |  | trans_fish.hdr: trans.rif | 
| 270 |  |  | rad -v fish trans.rif | 
| 271 |  |  |  | 
| 272 |  |  | ### End trans-fish tests | 
| 273 |  |  |  | 
| 274 |  |  | ### Reference and test for trans2 view def ### | 
| 275 |  |  |  | 
| 276 |  |  | test-trans2-def:        ref/trans2_def.hdr trans2_def.hdr | 
| 277 |  |  | $(RDU_PFILT) trans2_def.hdr | $(IMG_CMP) ref/trans2_def.hdr - | 
| 278 |  |  |  | 
| 279 |  |  | ref/trans2_def.hdr: | 
| 280 | greg | 1.2 | make trans2_def.hdr | 
| 281 | greg | 1.1 | $(RDU_PFILT) trans2_def.hdr > ref/trans2_def.hdr | 
| 282 |  |  |  | 
| 283 |  |  | trans2_def.hdr: trans2.rif | 
| 284 |  |  | rad -v def trans2.rif | 
| 285 |  |  |  | 
| 286 |  |  | ### End trans2-def tests | 
| 287 |  |  |  | 
| 288 |  |  | ### Reference and test for trans2 view fish ### | 
| 289 |  |  |  | 
| 290 |  |  | test-trans2-fish:       ref/trans2_fish.hdr trans2_fish.hdr | 
| 291 |  |  | $(RDU_PFILT) trans2_fish.hdr | $(IMG_CMP) ref/trans2_fish.hdr - | 
| 292 |  |  |  | 
| 293 |  |  | ref/trans2_fish.hdr: | 
| 294 | greg | 1.2 | make trans2_fish.hdr | 
| 295 | greg | 1.1 | $(RDU_PFILT) trans2_fish.hdr > ref/trans2_fish.hdr | 
| 296 |  |  |  | 
| 297 |  |  | trans2_fish.hdr:        trans2.rif | 
| 298 |  |  | rad -v fish trans2.rif | 
| 299 |  |  |  | 
| 300 |  |  | ### End trans2-fish tests | 
| 301 |  |  |  | 
| 302 |  |  | ### Reference and test for trans2 view win ### | 
| 303 |  |  |  | 
| 304 |  |  | test-trans2-win:        ref/trans2_win.hdr trans2_win.hdr | 
| 305 |  |  | $(RDU_PFILT) trans2_win.hdr | $(IMG_CMP) ref/trans2_win.hdr - | 
| 306 |  |  |  | 
| 307 |  |  | ref/trans2_win.hdr: | 
| 308 | greg | 1.2 | make trans2_win.hdr | 
| 309 | greg | 1.1 | $(RDU_PFILT) trans2_win.hdr > ref/trans2_win.hdr | 
| 310 |  |  |  | 
| 311 |  |  | trans2_win.hdr: trans2.rif | 
| 312 |  |  | rad -v win trans2.rif | 
| 313 |  |  |  | 
| 314 |  |  | ### End trans2-win tests |