summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f3ca3f1..f7654da 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,9 @@ VERSION := git-20170908
include config.mk
-CPPFLAGS += -DVERSION=\"$(VERSION)\" -DHAVE_GIFLIB=$(HAVE_GIFLIB) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF)
+VPATH := $(SRCDIR)
+
+CPPFLAGS += -I. -DVERSION=\"$(VERSION)\" -DHAVE_GIFLIB=$(HAVE_GIFLIB) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF)
DEPFLAGS := -MMD -MP
LDLIBS := -lImlib2 -lX11 -lXft
@@ -31,7 +33,7 @@ $(OBJ): Makefile
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEPFLAGS) -c -o $@ $<
config.h:
- cp config.def.h $@
+ cp $(SRCDIR)/config.def.h $@
sxiv: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)