-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
594 lines (537 loc) · 22.2 KB
/
Makefile
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
SRC=*.go cmd/png2prg/*.go tools/rom_charset_lowercase.prg tools/rom_charset_uppercase.prg
DISPLAYERS=display_koala.prg display_koala_anim.prg display_hires.prg display_hires_anim.prg display_mc_charset.prg display_sc_charset.prg display_mc_sprites.prg display_sc_sprites.prg display_koala_anim_alternative.prg display_mci_bitmap.prg display_mixed_charset.prg display_petscii_charset.prg display_ecm_charset.prg display_mc_charset_anim.prg display_sc_charset_anim.prg display_petscii_charset_anim.prg display_mc_charset_multi.prg display_sc_charset_multi.prg
ASMLIB=lib.asm
ASM=java -jar ./tools/KickAss-5.25.jar
ASMFLAGS=-showmem -time
X64=x64sc
UPX=upx
UPXFLAGS=--best
EXO=exomizer
LDFLAGS=-s -w
CGO=0
GOBUILDFLAGS=-v -trimpath
TARGET=png2prg
ALLTARGETS=png2prg_linux_amd64 png2prg_linux_arm64 png2prg_darwin_amd64 png2prg_darwin_arm64 png2prg_win_amd64.exe png2prg_win_arm64.exe png2prg_win_x86.exe
FLAGS=-d
FLAGSANIM=-frame-delay 8
FLAGSNG=-d -v -no-guess
FLAGSNG2=-d -v -bitpair-colors 0,-1,-1,-1
FLAGSFORCE=-d -v -bitpair-colors 0,8,10,2
TESTPIC=testdata/mirage_parrot.png
TESTMCI=testdata/mcinterlace/parriot?.png
#TESTSID=testdata/Lift_Off_V2.sid
TESTSID=testdata/512_Rap.sid
#TESTSID=testdata/pocket_universe_8580.sid
TESTSID2=testdata/Snake_Disco.sid
TESTSIDMAD=testdata/madonna/holiday.sid
TESTANIM=testdata/jamesband*.png
TESTSIDANIM=testdata/Nightbreed_-_Dalezy_TRIAD.sid
png2prg: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg
all: $(ALLTARGETS)
bench: $(DISPLAYERS)
go test -bench Benchmark. -benchmem ./...
dist: $(ALLTARGETS) $(TARGET) readme $(TESTSID) $(TESTSID2) $(TESTSIDMAD) $(TESTSIDANIM)
mkdir -p dist/testdata
cp readme.md dist/
cp $(ALLTARGETS) dist/
cp testdata/jamesband*.png dist/testdata/
cp $(TESTPIC) dist/testdata/
cp $(TESTSID) dist/testdata/
cp $(TESTSID) $(TESTSIDANIM) dist/testdata/
cp testdata/Dutch_Breeze_Soft_and_Wet.sid dist/testdata/
cp -r testdata/evoluer dist/testdata/
mkdir -p dist/testdata/mcinterlace
cp -r testdata/mcinterlace/*.png dist/testdata/mcinterlace/
cp -r testdata/drazlace dist/testdata/
cp -r testdata/madonna dist/testdata/
mkdir -p dist/testdata/mixedcharset
mkdir -p dist/testdata/hirescharset
mkdir -p dist/testdata/petscii
mkdir -p dist/testdata/charanim
cp -r testdata/mixedcharset/*.png dist/testdata/mixedcharset/
cp -r testdata/mixedcharset/*.gif dist/testdata/mixedcharset/
cp -r testdata/hirescharset/*.png dist/testdata/hirescharset/
cp -r testdata/petscii/*.png dist/testdata/petscii/
cp -r testdata/charanim/*.png dist/testdata/charanim/
cp testdata/floris_untitled.png dist/testdata/
cp testdata/floris_untitled.png dist/testdata/
cp testdata/short_circuit.png dist/testdata/
cp testdata/sander_ld.png dist/testdata/
cp testdata/mermaid_weee.png dist/testdata/
cp testdata/robinlevy_deadlock.png dist/testdata/
cp testdata/veto_room_with_view.png dist/testdata/
cp testdata/talent_vangelis320x200.png dist/testdata/
cp testdata/hend_temple320x200.png dist/testdata/
cp testdata/jonegg_thanos320x200.png dist/testdata/
cp testdata/leon_solar.png dist/testdata/
cp testdata/cisco_heat.png dist/testdata/
cp testdata/sulevi_daylight.png dist/testdata/
cp testdata/yiearkungfu.png dist/testdata/
cp testdata/the_sarge_lee320x200.png dist/testdata/
cp testdata/mirage_parrot320x200.png dist/testdata/
cp testdata/dragonslair320x200.png dist/testdata/
cp testdata/sir_scorpion320x200.png dist/testdata/
cp testdata/joe_hatching320x200.png dist/testdata/
cp testdata/the_sarge_1337*.gif dist/testdata/
./$(TARGET) -d -q -bf -nbc -o dist/01.floris.prg testdata/floris_untitled.png
./$(TARGET) -d -q -bf -o dist/02.mermaid.prg testdata/mermaid_song_of_the_sunset.png
./$(TARGET) -d -q -bf -o dist/03.shortcircuit.prg testdata/short_circuit.png
./$(TARGET) -d -q -bf -nbc -o dist/04.sander.prg testdata/sander_ld.png
./$(TARGET) -d -q -bpc 15,12,3,5 -o dist/05.mermaid2.prg testdata/mermaid_weee.png
./$(TARGET) -d -q -bf -o dist/06.robinlevy.prg testdata/robinlevy_deadlock.png
./$(TARGET) -d -q -bf -npcc -o dist/07.veto.prg testdata/veto_room_with_view.png
./$(TARGET) -d -q -bf -o dist/08.talent.prg testdata/talent_vangelis320x200.png
./$(TARGET) -d -q -bf -o dist/09.hend.prg testdata/hend_temple320x200.png
./$(TARGET) -d -q -bf -npcc -o dist/10.jonegg.prg testdata/jonegg_thanos320x200.png
./$(TARGET) -d -q -bf -o dist/11.leon.prg testdata/leon_solar.png
./$(TARGET) -d -q -bf -o dist/12.ciscoheat.prg testdata/cisco_heat.png
./$(TARGET) -d -q -bf -o dist/13.sulevi.prg testdata/sulevi_daylight.png
./$(TARGET) -d -q -bf -o dist/14.yiear.prg testdata/yiearkungfu.png
./$(TARGET) -d -q -bf -nbc -o dist/15.thesarge.prg testdata/the_sarge_lee320x200.png
./$(TARGET) -d -q -bf -o dist/16.mirage.prg testdata/mirage_parrot320x200.png
./$(TARGET) -d -q -bf -o dist/17.dragonslair.prg testdata/dragonslair320x200.png
./$(TARGET) -d -q -bf -nbc -o dist/18.scorpion.prg testdata/sir_scorpion320x200.png
./$(TARGET) -d -q -bf -o dist/19.joe.prg testdata/joe_hatching320x200.png
./$(TARGET) -d -q -na -o dist/phatchar.prg testdata/charanim/phatchar*.png
./$(TARGET) -d -q -bf -o "dist/1337 1.prg" testdata/the_sarge_1337_1.gif
./$(TARGET) -d -q -bf -o "dist/1337 2.prg" testdata/the_sarge_1337_2.gif
./$(TARGET) -d -q -bf -o "dist/1337 3.prg" testdata/the_sarge_1337_3.gif
rm -f dist/examples.d64
d64 -add dist/examples.d64 dist/0?.*.prg dist/1?.*.prg dist/phatchar.prg dist/1337*.prg
rm -f dist/*.prg
.PHONY: dist readme
install: $(TARGET)
sudo cp $(TARGET) /usr/local/bin/png2prg
displayers: $(DISPLAYERS)
compress: png2prg_linux_amd64.upx png2prg_linux_arm64.upx png2prg_darwin_amd64.upx png2prg_darwin_arm64.upx png2prg_win_amd64.exe.upx png2prg_win_x86.exe.upx
%.prg: %.asm $(ASMLIB)
$(ASM) $(ASMFLAGS) $< -o $@
%.upx: %
$(UPX) $(UPXFLAGS) -o $@ $<
touch $@
png2prg_linux_amd64: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=linux GOARCH=amd64 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
png2prg_linux_arm64: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=linux GOARCH=arm64 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
png2prg_darwin_amd64: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=darwin GOARCH=amd64 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
png2prg_darwin_arm64: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=darwin GOARCH=arm64 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
png2prg_win_amd64.exe: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=windows GOARCH=amd64 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
png2prg_win_arm64.exe: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=windows GOARCH=arm64 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
png2prg_win_x86.exe: $(SRC) $(DISPLAYERS)
CGO_ENABLED=$(CGO) GOOS=windows GOARCH=386 go build $(GOBUILDFLAGS) -ldflags="$(LDFLAGS)" -o $@ ./cmd/png2prg/
readme: $(TARGET)
./$(TARGET) -q -h >readme.md 2>&1
roms: rom_charset_lowercase.prg rom_charset_uppercase.prg
rom_charset_lowercase.prg: testdata/rom_charset_lowercase.png $(TARGET)
./$(TARGET) -np -m sccharset -bpc 0 -o $@ $<
rom_charset_uppercase.prg: testdata/rom_charset_uppercase.png $(TARGET)
./$(TARGET) -np -m sccharset -bpc 0 -o $@ $<
test: $(TARGET) $(TESTPIC) $(TESTSID)
./$(TARGET) $(FLAGS) -o q.prg -sid $(TESTSID) $(TESTPIC)
$(X64) q.prg >/dev/null
testmci: $(TARGET) $(TESTMCI) $(TESTSID)
./$(TARGET) $(FLAGS) -o q.prg -i -sid $(TESTSID) $(TESTMCI)
$(X64) q.prg >/dev/null
testmadonna: $(TARGET) $(TESTPIC) $(TESTSIDMAD)
./$(TARGET) $(FLAGS) -o q.prg -i -sid $(TESTSIDMAD) testdata/madonna/cjam_pure_madonna.png
$(X64) q.prg >/dev/null
testanim: $(TARGET) $(TESTANIM) $(TESTSIDANIM)
./$(TARGET) $(FLAGS) $(FLAGSANIM) -sid $(TESTSIDANIM) -o q.prg $(TESTANIM)
$(X64) q.prg >/dev/null
evoluer: $(TARGET)
./$(TARGET) $(FLAGS) -frame-delay 4 -o q.prg -sid testdata/evoluer/Evoluer.sid testdata/evoluer/PIC??.png
$(X64) q.prg >/dev/null
rose: $(TARGET)
./$(TARGET) $(FLAGS) -frame-delay 4 -o q.prg \
testdata/petscii/anim/rose0.png \
testdata/petscii/anim/rose1.png \
testdata/petscii/anim/rose2.png \
testdata/petscii/anim/rose3.png \
testdata/petscii/anim/rose4.png \
testdata/petscii/anim/rose5.png \
testdata/petscii/anim/rose6.png \
testdata/petscii/anim/rose5.png \
testdata/petscii/anim/rose4.png \
testdata/petscii/anim/rose3.png \
testdata/petscii/anim/rose2.png \
testdata/petscii/anim/rose1.png
$(X64) q.prg >/dev/null
oceanborn: $(TARGET)
./$(TARGET) $(FLAGS) -frame-delay 13 -o q.prg testdata/petscii/anim/oceanborn?.png
$(X64) q.prg >/dev/null
testpack: $(TARGET)
./$(TARGET) $(FLAGS) -nc -np -i -o q.prg $(TESTPIC)
$(EXO) sfx basic -q -o qq_guess.sfx.exo q.prg
dali --sfx 2082 -o qq_guess.sfx.dali q.prg
./$(TARGET) $(FLAGSNG) -nc -np -i -o q.prg $(TESTPIC)
$(EXO) sfx basic -q -o qq_noguess.sfx.exo q.prg
dali --sfx 2082 -o qq_noguess.sfx.dali q.prg
./$(TARGET) $(FLAGSNG2) -nc -np -i -o q.prg $(TESTPIC)
$(EXO) sfx basic -q -o qq_noguess2.sfx.exo q.prg
dali --sfx 2082 -o qq_noguess2.sfx.dali q.prg
./$(TARGET) $(FLAGSFORCE) -nc -np -i -o q.prg $(TESTPIC)
$(EXO) sfx basic -q -o qq_force_manual_colors.sfx.exo q.prg
dali --sfx 2082 -o qq_force_manual_colors.sfx.dali q.prg
./$(TARGET) $(FLAGS) -i -o q.prg $(TESTPIC)
$(X64) qq_guess.sfx.exo >/dev/null
# https://csdb.dk/forums/?roomid=13&topicid=38311&showallposts=1
FLORIS=testdata/floris_untitled.png
MERMAID=testdata/mermaid_song_of_the_sunset.png
MERMAID2=testdata/mermaid_weee.png
SHORTCIRCUIT=testdata/short_circuit.png
STE=testdata/ste_gng.png
SANDER=testdata/sander_ld.png
SULEVI=testdata/sulevi_daylight.png
benchkoala: floris mermaid shortcircuit ste mermaid2 sander sulevi robinlevy veto miscpic jonegg leon talent cisco yiear hend sarge mirage dragon scorpion joe
ls -l *_p2p.prg* *_spot.kla*
#MISCPIC=testdata/carrion_still_waiting.png
#MISCPIC=testdata/the_sarge_obscena_vaselina_palette1.png
#MISCPIC=testdata/archmage_mc_god.png
#MISCPIC=testdata/facet_turning_point_320x200.png
#MISCPIC=testdata/bizzmo_wool_colodore.png
#MISCPIC=testdata/joe_earth.png
#MISCPIC=testdata/tentacles.png
#MISCPIC=testdata/hend_temple320x200.png
#MISCPIC=testdata/the_sarge_therapy.png
#MISCPIC=testdata/focuslogo320x200.png
#MISCPIC=testdata/cisco_heat.png
#MISCPIC=testdata/yiearkungfu.png
#MISCPIC=testdata/the_sarge_lee320x200.png
#MISCPIC=testdata/mikael_pretzelpilami320x200.png
#MISCPIC=testdata/veto_eye320x200.png
#MISCPIC=testdata/jonegg_tapper320x200.png
#MISCPIC=testdata/fungus/scorpionpic/vice320x200.png
#MISCPIC=testdata/fungus/steel/vice320x200.png
#MISCPIC=testdata/mirage_culture320x200.png
MISCPIC=testdata/joe_hatching320x200.png
MISCPIC=testdata/dokk_last_ninja320x200.png
MISCPIC=testdata/carrion_still_waiting320x200.png
MISCPIC=testdata/bob_io320x200.png
P2PBENCHOPTS=-bf
# bestbf: -bpc 0,11,14,6
# best: -bpc 0,5,11,6 -nbc
floris: $(FLORIS) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,5,11,6 -nbc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
#best: -bpc 0,1,12,4
mermaid: $(MERMAID) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,1,12,4 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
#best bf: -bpc 1,6,11,0
#: -bpc 1,11,14,3
shortcircuit: $(SHORTCIRCUIT) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 1,6,11,0 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# bruteforce: -bpc 0,6,4,7
# best-bf-nbc: -bpc 0,9,1,3 -nbc
sander: $(SANDER) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,9,1,3 -nbc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# bruteforce: -bpc 0,2,14,11
# bf npcc winner: -bpc 0,6,14,1 -npcc
ste: $(STE) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,6,14,1 -npcc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
#best: -bpc 15,12,3,5
#15,5,12,3
#15,3,10,5
mermaid2: $(MERMAID2) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 15,12,3,5 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 3,13,1,7
sulevi: $(SULEVI) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 3,13,1,7 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 0,12,9,11
# default: -bpc 0,15,12,11
ROBIN=testdata/robinlevy_deadlock.png
# best bf: 0,14,15,3
#ROBIN=testdata/robinlevy_huntersmoon.png
robinlevy: $(ROBIN) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,12,9,11 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best: -bpc 9,0,6,5 (also bf, but non deterministic)
# best bf: 9,15,10,0
# default: 9,0,12,15
# best -bf -npcc: -bpc 9,10,15,5 -npcc
VETO=testdata/veto_room_with_view.png
veto: $(VETO) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 9,10,15,5 -npcc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best -bf: -bpc 8,0,6,5
LEON=testdata/leon_solar.png
leon: $(LEON) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 8,0,6,5 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
miscpic: $(MISCPIC) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -o $@_p2pdefault.prg $<
dali -o $@_p2pdefault.prg.dali $@_p2pdefault.prg
$(EXO) level -o $@_p2pdefault.prg.exo $@_p2pdefault.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
#
# best default: -bpc 14,0,15,11
# best bf npcc: -bpc 14,8,7,0 -npcc
JONEGG=testdata/jonegg_thanos320x200.png
jonegg: $(JONEGG) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 14,8,7,0 -npcc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 11,12,15,10
TALENT=testdata/talent_vangelis320x200.png
talent: $(TALENT) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 11,12,15,10 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 0,8,6,2
CISCO=testdata/cisco_heat.png
cisco: $(CISCO) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,8,6,2 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 6,8,0,15
YIEAR=testdata/yiearkungfu.png
yiear: $(YIEAR) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 6,8,0,15 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 12,1,9,11
HEND=testdata/hend_temple320x200.png
hend: $(HEND) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 12,1,9,11 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf -nbc: -bpc 0,5,4,6 -nbc
SARGE=testdata/the_sarge_lee320x200.png
sarge: $(SARGE) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,5,4,6 -nbc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 15,4,9,7
MIRAGE=testdata/mirage_parrot320x200.png
mirage: $(MIRAGE) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 15,4,9,7 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 0,12,11,2
DRAGON=testdata/dragonslair320x200.png
dragon: $(DRAGON) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,12,11,2 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
SCORPION=testdata/sir_scorpion320x200.png
scorpion:$(SCORPION) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bf -nbc -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
# best bf: -bpc 0,11,14,5
JOE=testdata/joe_hatching320x200.png
joe:$(JOE) $(TARGET)
spot13 $< -o $@_spot.kla
dali -o $@_spot.kla.dali $@_spot.kla
$(EXO) level -o $@_spot.prg.exo $@_spot.kla
./$(TARGET) $(P2PBENCHOPTS) -o $@_p2p.prg $<
dali -o $@_p2p.prg.dali $@_p2p.prg
$(EXO) level -o $@_p2p.prg.exo $@_p2p.prg
./$(TARGET) -bpc 0,11,14,5 -o $@_p2pbest.prg $<
dali -o $@_p2pbest.prg.dali $@_p2pbest.prg
$(EXO) level -o $@_p2pbest.prg.exo $@_p2pbest.prg
Png2prg-1.6 -o $@_p2p16.prg $<
dali -o $@_p2p16.prg.dali $@_p2p16.prg
ls -l $@_*
clean:
rm -f $(ALLTARGETS) $(TARGET) q*.prg display*.prg *.exo *.dali *.upx *.sym *_p2p.prg *_p2pbest.prg *_spot.kla *_p2p16.prg
rm -rf dist