forked from Lainports/freebsd-ports
* Support for new chips: MSP430FR5739, MSP430F5418, MSP430AFE253, MSP430F5527, MSP430F5510, MSP430F5528. * New -s option to specify serial port * Bug fixes for GDB stub interface and simulator. * Reader now supports tilde-expansion and ^[# key. * Better diagnostics for FET devices (more error codes). PR: ports/161695 Submitted by: Peter Jeremy <peterjeremy@acm.org> (maintainer)
26 lines
739 B
Text
26 lines
739 B
Text
--- Makefile.orig 2011-06-14 11:27:10.000000000 +1000
|
|
+++ Makefile 2011-07-29 05:26:08.226244817 +1000
|
|
@@ -16,7 +16,7 @@
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
INSTALL = /usr/bin/install
|
|
PREFIX ?= /usr/local
|
|
LDFLAGS ?= -s
|
|
@@ -38,8 +38,14 @@
|
|
PORTS_CFLAGS = `pkg-config --cflags libusb`
|
|
PORTS_LDFLAGS = `pkg-config --libs libusb` -ltermcap
|
|
else
|
|
+ ifeq ($(UNAME),FreeBSD) # FreeBSD Ports stuff
|
|
+# This is only needed prior to FreeBSD 8.x to find libusb
|
|
+ PORTS_CFLAGS = -I${LOCALBASE}/include
|
|
+ PORTS_LDFLAGS = -L${LOCALBASE}/lib
|
|
+ else
|
|
PORTS_CFLAGS =
|
|
PORTS_LDFLAGS =
|
|
+ endif
|
|
endif
|
|
endif
|
|
|