Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. all: door32 testdoor testdoor/art.go space-ace/space-ace yt2000/yt2000 mines/mines
  2. mines/mines: mines/*.go
  3. cd mines; go build
  4. # testdoor: testdoor/testdoor testdoor/testdoor.exe
  5. testdoor: testdoor/testdoor
  6. font-out: font-out.go
  7. go build font-out.go
  8. cd font-show; go build
  9. door32: door32.c
  10. gcc -g -o door32d door32.c
  11. gcc -o door32 door32.c
  12. testdoor/fonts.go: font-out
  13. # echo "package main\n\nimport \"red-green/door\"\n\n" > testdoor/fonts.go
  14. # ./font-out -f "Amazon Cyan,Medieval,Anarchy Blue,Unchained,Asylum,ArmageonRed,BrainDmgBlu,Boner,Descent,Remorse,Dungeon" TDFONTS.TDF TDFONTS2.TDF TDFONTS9.TDF > testdoor/fonts.go
  15. # ./font-out -f "Amazon Cyan,Medieval,Anarchy Blue,Unchained,Asylum,Armageddon,ArmageonRed,BrainDmgBlu,Boner,Descent,Remorse,Dungeon" TDFONTS.TDF TDFONTS2.TDF TDFONTS9.TDF > testdoor/fonts.go
  16. # ./font-out -f "Amazon Cyan,Anarchy Blue,Unchained,Asylum,Armageddon,ArmageonRed,BrainDmgBlu,Boner,Descent,Remorse,Dungeon" TDFONTS.TDF TDFONTS2.TDF TDFONTS9.TDF > testdoor/fonts.go
  17. ./font-out -f "Amazon Cyan,Anarchy Blue,Unchained,Asylum,ArmageonRed,BrainDmgBlu,Boner,Descent,Remorse,Dungeon" TDFONTS.TDF TDFONTS2.TDF TDFONTS9.TDF > testdoor/fonts.go
  18. # cat *_font.go >> testdoor/fonts.go
  19. # rm *_font.go
  20. testdoor/rgfont.go: font-out
  21. ./font-out -f "Armageddon" -c 7,1 -c 4,2 TDFONTS2.TDF > testdoor/rgfont.go
  22. sed -i 's/Armageddon/RedGreen/g' testdoor/rgfont.go
  23. ansi-to-go/ansi-to-go: ansi-to-go/ansi-to-go.go
  24. cd ansi-to-go; go build
  25. testdoor/art.go: testdoor/growl.ans ansi-to-go/ansi-to-go
  26. ./ansi-to-go/ansi-to-go testdoor/growl.ans > testdoor/art.go
  27. space-ace/space.go: space.ans
  28. ./ansi-to-go.py main space.ans > space-ace/space.go
  29. testdoor/testdoor: testdoor/art.go testdoor/fonts.go testdoor/rgfont.go testdoor/*.go door/*.go
  30. cd testdoor; GOOS=linux GOARCH=amd64 go build
  31. testdoor/testdoor.exe: testdoor/art.go testdoor/fonts.go testdoor/rgfont.go testdoor/*.go door/*.go
  32. cd testdoor; GOOS=windows GOARCH=amd64 go build
  33. space-ace/space-ace: space-ace/*.go door/*.go space-ace/space.go
  34. cd space-ace; go build -ldflags="-extldflags=-static" -tags sqlite_omit_load_extension
  35. # ./font-out -f "Amazon Cyan,Medieval,Anarchy Blue" TDFONTS.TDF
  36. # ./font-out -f Unchained,Asylum,ArmageonRed,BrainDmgBlu TDFONTS2.TDF
  37. # ./font-out -f Boner,Descent,Remorse,Dungeon TDFONTS9.TDF
  38. yt2000/ytopen.go: yt2000/ytopen.ans
  39. ./ansi-to-go/ansi-to-go yt2000/ytopen.ans > yt2000/ytopen.go
  40. yt2000/cyberwar.go:
  41. ./font-util/font-util extract -f CyberWar *.TDF > yt2000/cyberwar.go
  42. yt2000/armagedonred.go:
  43. ./font-util/font-util extract -f ArmagedonRed *.TDF > yt2000/armagedonred.go
  44. yt2000/yt2000: yt2000/yt.go yt2000/ytopen.go yt2000/cyberwar.go
  45. cd yt2000; go build