summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.mk b/common.mk
new file mode 100644
index 0000000..888e048
--- /dev/null
+++ b/common.mk
@@ -0,0 +1,4 @@
+LDFLAGS = -X main.version=$(VERSION)
+
+goircd: *.go
+ go build -ldflags "$(LDFLAGS)"