diff options
author | lns <matzeton@googlemail.com> | 2022-05-06 11:38:26 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-05-06 11:38:26 +0200 |
commit | 3b4947b8b4a5c6ec9421ade5cc759ca3b947bd67 (patch) | |
tree | 8ac0c497f65dee15cf8d0796acc640d0d0e27092 /Makefile | |
parent | 5e7d06b220d21e03d01334c9f445a8407916bb0d (diff) |
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,8 +1,17 @@ CXX=g++ PKGCONFIG=pkg-config -CXXFLAGS+=-Wall -Wextra -Dcimg_use_jpeg=1 -Dcimg_display=0 -Dcimg_plugin='"jpeg_buffer.h"' -g $(shell $(PKGCONFIG) --cflags libcurl) $(shell $(PKGCONFIG) --cflags libjpeg) -LIBS+=$(shell $(PKGCONFIG) --libs libcurl) $(shell $(PKGCONFIG) --libs libjpeg) +CXXFLAGS+=-Wall -Wextra -Dcimg_use_jpeg=1 -Dcimg_use_png=1 -Dcimg_display=0 -Dcimg_plugin='"jpeg_buffer.h"' -g + +CXXFLAGS+= \ + $(shell $(PKGCONFIG) --cflags libcurl) \ + $(shell $(PKGCONFIG) --cflags libjpeg) \ + $(shell $(PKGCONFIG) --cflags libpng) + +LIBS+= \ + $(shell $(PKGCONFIG) --libs libcurl) \ + $(shell $(PKGCONFIG) --libs libjpeg) \ + $(shell $(PKGCONFIG) --libs libpng) ifneq ($(strip $(ENABLE_SANITIZER)),) CXXFLAGS+=-fsanitize=address -fsanitize=leak -fsanitize=undefined @@ -15,6 +24,9 @@ SOURCES:=GithubAPI.cpp ImageManipulation.cpp main.cpp all: $(APP) $(APP): $(HEADERS) $(SOURCES) + $(PKGCONFIG) --exist libcurl || false + $(PKGCONFIG) --exist libjpeg || false + $(PKGCONFIG) --exist libpng || false $(CXX) $(CXXFLAGS) $(LDFLAGS) $(SOURCES) -o $@ $(LIBS) clean: |