mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
b2749d0f77
commit
a686dbfaa4
1 changed files with 9 additions and 7 deletions
|
|
@ -1,11 +1,13 @@
|
|||
DEFINES=
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
LD=g++
|
||||
CFLAGS=-O3 -g -std=c99 -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
|
||||
CXXFLAGS=-O3 -g -Wall `pkg-config --cflags libcrypto++` $(DEFINES)
|
||||
LDFLAGS=`pkg-config --libs libusb-1.0` `pkg-config --libs libcrypto++`
|
||||
BINS=elftosb sbtoelf sbloader rsrctool elftosb1
|
||||
CC := gcc
|
||||
CXX := g++
|
||||
LD := g++
|
||||
|
||||
LIBUSB := $(shell pkg-config --cflags libusb-1.0)
|
||||
CFLAGS := -O3 -g -std=c99 -Wall $(shell pkg-config --cflags libusb-1.0) $(DEFINES)
|
||||
CXXFLAGS := -O3 -g -Wall $(pkg-config --cflags libcrypto++) $(DEFINES)
|
||||
LDFLAGS := $(shell pkg-config --libs libusb-1.0) $(shell pkg-config --libs libcrypto++)
|
||||
BINS := elftosb sbtoelf sbloader rsrctool elftosb1
|
||||
|
||||
all: $(BINS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue