Makefile.win 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. BUILD_OPTS = GOOS=windows GOARCH=amd64
  2. BUILD = ${BUILD_OPTS} go build
  3. EXT = .exe
  4. all: door32${EXT} testdoor/testdoor${EXT} space-ace/space-ace${EXT} yt2000/yt2000${EXT} mines/mines${EXT}
  5. mines/mines: mines/*.go
  6. cd mines; ${BUILD}
  7. # The old utility:
  8. # font-out: font-out.go
  9. # go build font-out.go
  10. # cd font-show; go build
  11. # font-util does it all! show, extract, list
  12. font-util/font-util:
  13. cd font-util; ${BUILD}
  14. door32${EXT}: door32.go convert.go
  15. ${BUILD_OPTS} go build door32.go convert.go
  16. # door32: door32.c
  17. # gcc -g -o door32d door32.c
  18. # gcc -o door32 door32.c
  19. # Extract font, change colors, rename font to RedGreen.
  20. # ./ansi-to-go.py main space.ans > space-ace/space.go
  21. testdoor/testdoor${EXT}: testdoor/*.go door/*.go
  22. cd testdoor; ${BUILD}
  23. # This builds just for amd64. (I might not be amd64...)
  24. # cd testdoor; GOOS=linux GOARCH=amd64 go build
  25. # Build a windows exe, because we can!
  26. # testdoor/testdoor.exe: testdoor/art.go testdoor/fonts.go testdoor/rgfont.go testdoor/*.go door/*.go
  27. # cd testdoor; GOOS=windows GOARCH=amd64 go build
  28. # Build, with static link of sqlite.
  29. space-ace/space-ace${EXT}: space-ace/*.go door/*.go space-ace/space.go
  30. cd space-ace; ${BUILD} -ldflags="-extldflags=-static" -tags sqlite_omit_load_extension
  31. # ./font-out -f "Amazon Cyan,Medieval,Anarchy Blue" TDFONTS.TDF
  32. # ./font-out -f Unchained,Asylum,ArmageonRed,BrainDmgBlu TDFONTS2.TDF
  33. # ./font-out -f Boner,Descent,Remorse,Dungeon TDFONTS9.TDF
  34. yt2000/ytopen.go: yt2000/ytopen.ans
  35. ./ansi-to-go/ansi-to-go yt2000/ytopen.ans > yt2000/ytopen.go
  36. yt2000/cyberwar.go:
  37. ./font-util/font-util extract -f CyberWar *.TDF > yt2000/cyberwar.go
  38. yt2000/armagedonred.go:
  39. ./font-util/font-util extract -f ArmagedonRed *.TDF > yt2000/armagedonred.go
  40. yt2000/yt2000${EXT}: yt2000/yt.go yt2000/ytopen.go yt2000/cyberwar.go
  41. cd yt2000; ${BUILD}