Commit ce5bb420 authored by David Griffith's avatar David Griffith 💬

Add build-time Makefile configuration option to add MacOS-specific stuff.

At least with MacOS 10.13, it's not necessary to explicitly link the two
frameworks: Foundation and IOKit.  When libusb-1.0.0.dylib as installed
through MacPorts and Brew, these two frameworks will automatically be
included.  It's not clear which earlier releases require the frameworks
to be explicitly included, so there's now an option in the Makefile to
do this.
parent 1771e439
# Install Configuration
# Normally minipro is installed to /usr/local. If you want to put it
# somewhere else, define that location here.
PREFIX=/usr/local
# Some older releases of MacOS need some extra library flags.
#EXTRA_LIBS += "-framework Foundation -framework IOKit"
#########################################################################
# This section is where minipro is actually built.
# Under normal circumstances, nothing below this point should be changed.
##########################################################################
# Versioning
VERSION_MAJOR = 0
VERSION_MINOR = 2
......@@ -50,7 +59,7 @@ libusb_LIBS := $(shell $(PKG_CONFIG) --libs libusb-1.0)
CFLAGS = -g -O0
override CFLAGS += $(libusb_CFLAGS)
override LIBS += $(libusb_LIBS)
override LIBS += $(libusb_LIBS) $(EXTRA_LIBS)
all: $(PROGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment