mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Improve Macports support
This commit is contained in:
parent
a06765e5a8
commit
456dc8f245
1 changed files with 11 additions and 6 deletions
|
@ -21,9 +21,9 @@ TAR = tar
|
||||||
TARFLAGS ?= -v --ignore-failed-read -r
|
TARFLAGS ?= -v --ignore-failed-read -r
|
||||||
TARFLAGS += -C .. -f
|
TARFLAGS += -C .. -f
|
||||||
CROSS ?= arm-none-eabi-
|
CROSS ?= arm-none-eabi-
|
||||||
CC = gcc
|
CC ?= gcc
|
||||||
CXX = g++
|
CXX ?= g++
|
||||||
LD = g++
|
LD ?= g++
|
||||||
SH = sh
|
SH = sh
|
||||||
BASH = bash
|
BASH = bash
|
||||||
PERL = perl
|
PERL = perl
|
||||||
|
@ -50,7 +50,8 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(platform),Darwin)
|
ifeq ($(platform),Darwin)
|
||||||
USE_BREW = 1
|
USE_BREW ?= 1
|
||||||
|
USE_MACPORTS ?= 0
|
||||||
AR= /usr/bin/ar rcs
|
AR= /usr/bin/ar rcs
|
||||||
RANLIB= /usr/bin/ranlib
|
RANLIB= /usr/bin/ranlib
|
||||||
else
|
else
|
||||||
|
@ -60,11 +61,15 @@ endif
|
||||||
|
|
||||||
ifeq ($(USE_BREW),1)
|
ifeq ($(USE_BREW),1)
|
||||||
BREW_PREFIX = $(shell brew --prefix 2>/dev/null)
|
BREW_PREFIX = $(shell brew --prefix 2>/dev/null)
|
||||||
ifeq ($(strip $(BREW_PREFIX)),)
|
ifneq ($(strip $(BREW_PREFIX)),)
|
||||||
MACPORTS_PREFIX ?= /opt/local
|
USE_BREW = 0
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(USE_MACPORTS),1)
|
||||||
|
MACPORTS_PREFIX ?= /opt/local
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
DEFCXXFLAGS = -g -O0 -pipe
|
DEFCXXFLAGS = -g -O0 -pipe
|
||||||
DEFCFLAGS = -g -O0 -fstrict-aliasing -pipe
|
DEFCFLAGS = -g -O0 -fstrict-aliasing -pipe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue