Fix compilation with sudo: use CURDIR instead of PWD
This commit is contained in:
parent
9c7f5fed12
commit
950643cff3
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ SRC := $(wildcard **/*.c **/*/*.c **/*.cc **/*/*.cc)
|
|||||||
HEADERS := $(wildcard **/*.h **/*/*.h **/*.hh **/*/*.hh)
|
HEADERS := $(wildcard **/*.h **/*/*.h **/*.hh **/*/*.hh)
|
||||||
HTML := $(wildcard html/*.js html/*.html)
|
HTML := $(wildcard html/*.js html/*.html)
|
||||||
|
|
||||||
CFLAGS := -Werror -Wall -g -I$(PWD)
|
CFLAGS := -Werror -Wall -g -I$(CURDIR)
|
||||||
LDLIBS := -lpthread -lstdc++
|
LDLIBS := -lpthread -lstdc++
|
||||||
|
|
||||||
ifneq (x,x$(shell which ccache))
|
ifneq (x,x$(shell which ccache))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user