From b3270e4537436f8036246876b2d180d12e25e609 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Sun, 8 Apr 2018 13:21:25 -0400 Subject: [PATCH] Executes libpng-config once Instead of at each CC invocation --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7caaaeb..5a4630b 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,11 @@ ifeq ($(CC), gcc) else SPECIFIC_CFLAGS= endif +INCLUDE_PATHS=$(shell libpng-config --I_opts) CFLAGS=-O3 -Wall -Wuninitialized \ -fomit-frame-pointer -funroll-loops \ $(SPECIFIC_CFLAGS) \ - -DNODEBUG `libpng-config --I_opts` + -DNODEBUG $(INCLUDE_PATHS) VERSION=$(shell git describe) ARCHIVE_PATH=optar-$(VERSION).tar.gz