diff options
author | Joe <bousset.rudy@gmail.com> | 2022-05-02 09:50:11 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-05-02 09:50:11 +0200 |
commit | 74c1ffc73bece4f210618546e6a506b8d5c98d1c (patch) | |
tree | 92e8e287f587762e54430a6e89cf9cfd73660240 /Makefile | |
parent | My version (diff) | |
parent | update copyright for 2022 (diff) | |
download | mpd-notification-74c1ffc73bece4f210618546e6a506b8d5c98d1c.tar.gz mpd-notification-74c1ffc73bece4f210618546e6a506b8d5c98d1c.tar.bz2 mpd-notification-74c1ffc73bece4f210618546e6a506b8d5c98d1c.tar.xz mpd-notification-74c1ffc73bece4f210618546e6a506b8d5c98d1c.tar.zst mpd-notification-74c1ffc73bece4f210618546e6a506b8d5c98d1c.zip |
Merge branch 'master' into jozan-merge-master
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -8,32 +8,32 @@ CP := cp RM := rm # flags -CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror +CFLAGS_EXTRA += -std=c11 -O2 -fPIC -Wall -Werror ifneq ($(wildcard /usr/include/iniparser),) -CFLAGS += -I/usr/include/iniparser +CFLAGS_EXTRA += -I/usr/include/iniparser endif -CFLAGS += -liniparser -CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null) +CFLAGS_EXTRA += -liniparser +CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null) ifneq ($(CFLAGS_SYSTEMD),) -CFLAGS += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD) +CFLAGS_EXTRA += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD) endif -CFLAGS += $(shell pkg-config --cflags --libs libmpdclient) -CFLAGS += $(shell pkg-config --cflags --libs libnotify) -CFLAGS_LIBAV := $(shell pkg-config --cflags --libs libavformat libavutil 2>/dev/null) +CFLAGS_EXTRA += $(shell pkg-config --cflags --libs libmpdclient) +CFLAGS_EXTRA += $(shell pkg-config --cflags --libs libnotify) +CFLAGS_LIBAV := $(shell pkg-config --cflags --libs libavformat libavutil 2>/dev/null) ifneq ($(CFLAGS_LIBAV),) -CFLAGS += -DHAVE_LIBAV $(CFLAGS_LIBAV) -CFLAGS += -lmagic +CFLAGS_EXTRA += -DHAVE_LIBAV $(CFLAGS_LIBAV) +CFLAGS_EXTRA += -lmagic endif LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie # this is just a fallback in case you do not use git but downloaded # a release tarball... -VERSION := 0.8.5 +VERSION := 0.8.6 all: mpd-notification README.html mpd-notification: mpd-notification.c mpd-notification.h config.h version.h - $(CC) $(CFLAGS) $(LDFLAGS) -o mpd-notification mpd-notification.c + $(CC) mpd-notification.c $(CFLAGS) $(CFLAGS_EXTRA) $(LDFLAGS) -o mpd-notification config.h: $(CP) config.def.h config.h |