diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2019-11-01 12:32:27 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-06-21 09:07:17 +0200 |
commit | a686dbfaa43cd13a252de59572cf10631332eb51 (patch) | |
tree | dd8beeab8fc1e7800a19fc45bedfc213ea23a62e | |
parent | b2749d0f77547d990e30a52d4a86c24b99e26387 (diff) | |
download | rockbox-a686dbfaa43cd13a252de59572cf10631332eb51.tar.gz rockbox-a686dbfaa43cd13a252de59572cf10631332eb51.zip |
sbtools: Avoid calling pkg-config on each compiler invocation.
Only expand pkg-config calls once by making the compiler flags simply
expanded variables. Makes things more predicable and slightly faster.
Change-Id: Ie2ed066f205a95ec8a7708cefeb29e9989815db6
-rw-r--r-- | utils/imxtools/sbtools/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/utils/imxtools/sbtools/Makefile b/utils/imxtools/sbtools/Makefile index e6d064b2a3..3e284e20dd 100644 --- a/utils/imxtools/sbtools/Makefile +++ b/utils/imxtools/sbtools/Makefile | |||
@@ -1,11 +1,13 @@ | |||
1 | DEFINES= | 1 | DEFINES= |
2 | CC=gcc | 2 | CC := gcc |
3 | CXX=g++ | 3 | CXX := g++ |
4 | LD=g++ | 4 | LD := g++ |
5 | CFLAGS=-O3 -g -std=c99 -Wall `pkg-config --cflags libusb-1.0` $(DEFINES) | 5 | |
6 | CXXFLAGS=-O3 -g -Wall `pkg-config --cflags libcrypto++` $(DEFINES) | 6 | LIBUSB := $(shell pkg-config --cflags libusb-1.0) |
7 | LDFLAGS=`pkg-config --libs libusb-1.0` `pkg-config --libs libcrypto++` | 7 | CFLAGS := -O3 -g -std=c99 -Wall $(shell pkg-config --cflags libusb-1.0) $(DEFINES) |
8 | BINS=elftosb sbtoelf sbloader rsrctool elftosb1 | 8 | CXXFLAGS := -O3 -g -Wall $(pkg-config --cflags libcrypto++) $(DEFINES) |
9 | LDFLAGS := $(shell pkg-config --libs libusb-1.0) $(shell pkg-config --libs libcrypto++) | ||
10 | BINS := elftosb sbtoelf sbloader rsrctool elftosb1 | ||
9 | 11 | ||
10 | all: $(BINS) | 12 | all: $(BINS) |
11 | 13 | ||