aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-10-16 21:15:38 +0200
committerBert Münnich <ber.t@posteo.de>2017-10-16 21:15:38 +0200
commit2cf9cfc700cf0e6af92d6fd103e5d7398a51b478 (patch)
treec658d672c21767d3f5034f03d68147cb23513494
parent148026007cae3b97d39d2cfee7562c139eb486b2 (diff)
Small refinements in Makefile
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4078796..6786c63 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,9 @@ srcdir = .
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
-CC ?= gcc
+CC ?= cc
CFLAGS += -std=c99 -Wall -pedantic
-CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
+CPPFLAGS += -I/usr/include/freetype2
DEPFLAGS = -MMD -MP
LDFLAGS +=
@@ -22,7 +22,7 @@ HAVE_GIFLIB = 1
# enable features requiring libexif (-lexif)
HAVE_LIBEXIF = 1
-REQ_CPPFLAGS = -I. -DVERSION=\"$(VERSION)\" \
+REQ_CPPFLAGS = -I. -D_XOPEN_SOURCE=700 -DVERSION=\"$(VERSION)\" \
-DHAVE_GIFLIB=$(HAVE_GIFLIB) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF)
ALL_CPPFLAGS = $(REQ_CPPFLAGS) $(CPPFLAGS)
@@ -49,7 +49,7 @@ $(V).SILENT:
sxiv: $(OBJS)
@echo "LINK $@"
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
$(OBJS): config.h $(srcdir)/Makefile