Browse Source

Small refinements in Makefile

master
Bert Münnich 7 years ago
parent
commit
2cf9cfc700
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Makefile

+ 4
- 4
Makefile View File

@@ -7,9 +7,9 @@ srcdir = .
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man


CC ?= gcc
CC ?= cc
CFLAGS += -std=c99 -Wall -pedantic CFLAGS += -std=c99 -Wall -pedantic
CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
CPPFLAGS += -I/usr/include/freetype2
DEPFLAGS = -MMD -MP DEPFLAGS = -MMD -MP
LDFLAGS += LDFLAGS +=


@@ -22,7 +22,7 @@ HAVE_GIFLIB = 1
# enable features requiring libexif (-lexif) # enable features requiring libexif (-lexif)
HAVE_LIBEXIF = 1 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) -DHAVE_GIFLIB=$(HAVE_GIFLIB) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF)
ALL_CPPFLAGS = $(REQ_CPPFLAGS) $(CPPFLAGS) ALL_CPPFLAGS = $(REQ_CPPFLAGS) $(CPPFLAGS)


@@ -49,7 +49,7 @@ $(V).SILENT:


sxiv: $(OBJS) sxiv: $(OBJS)
@echo "LINK $@" @echo "LINK $@"
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)


$(OBJS): config.h $(srcdir)/Makefile $(OBJS): config.h $(srcdir)/Makefile




Loading…
Cancel
Save