Get rid of SRCDIR macro, VPATH on make cmd line suffices
This commit is contained in:
parent
2bf8f2ac42
commit
171633de32
6
Makefile
6
Makefile
|
@ -4,8 +4,6 @@ all: sxiv
|
||||||
|
|
||||||
include config.mk
|
include config.mk
|
||||||
|
|
||||||
VPATH := $(SRCDIR)
|
|
||||||
|
|
||||||
CPPFLAGS += -I. -DVERSION=\"$(VERSION)\" -DHAVE_GIFLIB=$(HAVE_GIFLIB) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF)
|
CPPFLAGS += -I. -DVERSION=\"$(VERSION)\" -DHAVE_GIFLIB=$(HAVE_GIFLIB) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF)
|
||||||
DEPFLAGS := -MMD -MP
|
DEPFLAGS := -MMD -MP
|
||||||
|
|
||||||
|
@ -28,9 +26,9 @@ $(OBJ): config.h Makefile
|
||||||
@echo "CC $@"
|
@echo "CC $@"
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEPFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEPFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
config.h:
|
config.h: | config.def.h
|
||||||
@echo "GEN $@"
|
@echo "GEN $@"
|
||||||
cp $(SRCDIR)/config.def.h $@
|
cp $| $@
|
||||||
|
|
||||||
sxiv: $(OBJ)
|
sxiv: $(OBJ)
|
||||||
@echo "LINK $@"
|
@echo "LINK $@"
|
||||||
|
|
Loading…
Reference in a new issue