summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-05-14 07:24:25 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-05-14 07:24:25 -0400
commit3fa8413d2a985ec310a4370b07496b930a5e0ef1 (patch)
tree9c89cd68b1910bdc77a8d7968ebc78bab1b1f38c
parent3932ee89bb88e13599f859ff025b56f72c90b9c5 (diff)
downloadselphy_go-3fa8413d2a985ec310a4370b07496b930a5e0ef1.tar.gz
selphy_go-3fa8413d2a985ec310a4370b07496b930a5e0ef1.tar.bz2
selphy_go-3fa8413d2a985ec310a4370b07496b930a5e0ef1.zip
Support building with golang and gcc-go
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9e967ca..2ae8311 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,12 @@
-selphy: selphy.go
+selphy-golang: selphy.go
+ @echo " ** Compiling with golang"
go build selphy.go
+selphy-gccgo: selphy.go
+ @echo " ** Compiling with gccgo"
+ gccgo -o selphy selphy.go
+
+all: selphy-golang
+
clean:
rm -f selphy