diff options
author | NRK <nrk@disroot.org> | 2022-05-26 06:08:59 +0600 |
---|---|---|
committer | N-R-K <nrk@disroot.org> | 2022-05-30 12:07:01 +0000 |
commit | c713186ce9861eb4b0246896fd8b003d72994962 (patch) | |
tree | eca12b7f27ce140585f9ca5a48f412fade24f72c | |
parent | 6c30fb22cc5b065c66fd37ae48da94a11f97193b (diff) |
Makefile: use lowercase for internal macros
ref: 971f5d669490696c11f5c4ede1fee558e05ae4fc
-rw-r--r-- | Makefile | 20 | ||||
-rw-r--r-- | config.mk | 2 |
2 files changed, 12 insertions, 10 deletions
@@ -13,16 +13,18 @@ lib_gif_1 = -lgif lib_webp_0 = lib_webp_1 = -lwebpdemux -lwebp -CPPFLAGS = -D_XOPEN_SOURCE=700 $(INCLUDES) \ +nsxiv_cppflags = -D_XOPEN_SOURCE=700 \ -DHAVE_LIBGIF=$(HAVE_LIBGIF) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF) \ -DHAVE_LIBWEBP=$(HAVE_LIBWEBP) -DHAVE_LIBFONTS=$(HAVE_LIBFONTS) \ - -DHAVE_INOTIFY=$(HAVE_INOTIFY) $(inc_fonts_$(HAVE_LIBFONTS)) + -DHAVE_INOTIFY=$(HAVE_INOTIFY) $(inc_fonts_$(HAVE_LIBFONTS)) \ + $(CPPFLAGS) -NSXIV_LDLIBS = -lImlib2 -lX11 \ +nsxiv_ldlibs = -lImlib2 -lX11 \ $(lib_exif_$(HAVE_LIBEXIF)) $(lib_gif_$(HAVE_LIBGIF)) \ - $(lib_webp_$(HAVE_LIBWEBP)) $(lib_fonts_$(HAVE_LIBFONTS)) + $(lib_webp_$(HAVE_LIBWEBP)) $(lib_fonts_$(HAVE_LIBFONTS)) \ + $(LDLIBS) -OBJS = autoreload.o commands.o image.o main.o options.o \ +objs = autoreload.o commands.o image.o main.o options.o \ thumbs.o util.o window.o .SUFFIXES: @@ -30,15 +32,15 @@ OBJS = autoreload.o commands.o image.o main.o options.o \ all: nsxiv -nsxiv: $(OBJS) +nsxiv: $(objs) @echo "LINK $@" - $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS) $(NSXIV_LDLIBS) + $(CC) $(LDFLAGS) -o $@ $(objs) $(nsxiv_ldlibs) .c.o: @echo "CC $@" - $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) $(nsxiv_cppflags) -c -o $@ $< -$(OBJS): Makefile config.mk nsxiv.h config.h commands.h +$(objs): Makefile config.mk nsxiv.h config.h commands.h options.o: version.h window.o: icon/data.h @@ -33,4 +33,4 @@ ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png # inc_fonts_bsd_0 = # inc_fonts_bsd_1 = -I/usr/X11R6/include/freetype2 # LDLIBS = -lz -L/usr/local/lib -L/usr/X11R6/lib $(lib_fonts_bsd_$(HAVE_LIBFONTS)) -# INCLUDES = -I/usr/local/include -I/usr/X11R6/include $(inc_fonts_bsd_$(HAVE_LIBFONTS)) +# CPPFLAGS = -I/usr/local/include -I/usr/X11R6/include $(inc_fonts_bsd_$(HAVE_LIBFONTS)) |