Add correct environment-handling (pass LC_*, LANG, DISPLAY), add -rpath for NetBSD
This commit is contained in:
8
Makefile
8
Makefile
@ -1,10 +1,18 @@
|
||||
UNAME=$(shell uname)
|
||||
|
||||
CFLAGS += -Wall
|
||||
# Extended debugging flags, macros shall be available in gcc
|
||||
CFLAGS += -gdwarf-2
|
||||
CFLAGS += -g3
|
||||
CFLAGS += -I/usr/include/xcb
|
||||
CFLAGS += -I/usr/local/include/
|
||||
CFLAGS += -I/usr/local/include/xcb
|
||||
|
||||
LDFLAGS += -lxcb-wm
|
||||
LDFLAGS += -L/usr/local/lib
|
||||
ifeq ($(UNAME),NetBSD)
|
||||
LDFLAGS += -Wl,-rpath,/usr/local/lib
|
||||
endif
|
||||
|
||||
FILES=$(patsubst %.c,%.o,$(wildcard *.c))
|
||||
|
||||
|
Reference in New Issue
Block a user