mirror of https://github.com/joan2937/pigpio
Add CROSS_PREFIX var to make cross-compilation easier
This commit is contained in:
parent
cf372fa5db
commit
e80175dc93
13
Makefile
13
Makefile
|
@ -1,10 +1,13 @@
|
||||||
#
|
#
|
||||||
CC = gcc
|
# Set CROSS_PREFIX to prepend to all compiler tools at once for easier
|
||||||
AR = ar
|
# cross-compilation.
|
||||||
RANLIB = ranlib
|
CROSS_PREFIX =
|
||||||
SIZE = size
|
CC = $(CROSS_PREFIX)gcc
|
||||||
|
AR = $(CROSS_PREFIX)ar
|
||||||
|
RANLIB = $(CROSS_PREFIX)ranlib
|
||||||
|
SIZE = $(CROSS_PREFIX)size
|
||||||
|
STRIP = $(CROSS_PREFIX)strip
|
||||||
SHLIB = $(CC) -shared
|
SHLIB = $(CC) -shared
|
||||||
STRIP = strip
|
|
||||||
STRIPLIB = $(STRIP) --strip-unneeded
|
STRIPLIB = $(STRIP) --strip-unneeded
|
||||||
|
|
||||||
CFLAGS += -O3 -Wall -pthread
|
CFLAGS += -O3 -Wall -pthread
|
||||||
|
|
Loading…
Reference in New Issue