diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5,6 +5,9 @@ systemddir = $(libdir)/systemd GOPATH := $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) +CFLAGS = -std=c99 -Wall -Wextra -Werror -pedantic +CGO_CFLAGS = $(CFLAGS) -Wno-unused-parameter + deps = gopkg.in/yaml.v2 subdirs = src/nslcd_proto @@ -38,7 +41,7 @@ $(foreach d,$(deps),$(eval src/$d: NET; GOPATH='$(GOPATH)' go get -d -u $d)) .PHONY: NET bin/nshd: $(download) $(generate) $(shell find src -name .git -prune -o -print) - GOPATH='$(GOPATH)' go install nshd + GOPATH='$(GOPATH)' CGO_CFLAGS='$(CGO_CFLAGS)' go install nshd $(DESTDIR)$(bindir)/%: bin/% install -Dm755 $< $@ |