Add correct environment-handling (pass LC_*, LANG, DISPLAY), add -rpath for NetBSD

This commit is contained in:
Michael Stapelberg
2009-02-09 20:51:52 +01:00
parent 8ce36c465e
commit 431c99effa
2 changed files with 49 additions and 28 deletions

View File

@ -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))