diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,9 +1,12 @@ -# Copyright (C) 2011, 2013-2014 Luke Shumaker <lukeshu@sbcglobal.net> +# Copyright (C) 2011, 2013-2015 Luke Shumaker <lukeshu@sbcglobal.net> prefix ?= /usr/local bindir ?= $(prefix)/bin +CFLAGS += -Wall -Werror -Wextra -pedantic -std=c99 + INSTALL = install RM = rm -f +GOBUILD = go build BINFILES = \ batterymon \ @@ -39,10 +42,8 @@ clean: $(RM) $(BINFILES) $(RM) *~ -%: %.php - install -m755 $< $@ %: %.go - go build -o $@ $< + $(GOBUILD) -o $@ $< .gitignore: Makefile printf '%s\n' '*~' $(BINFILES) > $@ |