Makefile 2.0 KB

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