aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b425c33..4aa7e94 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
PREFIX = /usr/local/bin
CC = gcc
-CFLAGS = -Wall -g $(shell gpgme-config --cflags --libs) # -DDEBUG
+CFLAGS = -Wall -g \
+ $(shell gpgme-config --cflags --libs) #-DDEBUG
+ifdef DISPLAY
+ CFLAGS += -lX11 -DDISPLAY
+endif
MAN_PATH = /usr/share/man/man1
SOURCES = src/*.c
OBJECTS = *.o