Build fixes for OpenBSD.

This commit is contained in:
Daniel Beer 2012-10-09 16:49:42 +13:00
parent 8334f55418
commit 4db2f9f499
1 changed files with 7 additions and 8 deletions

View File

@ -38,15 +38,15 @@ UNAME_S := $(shell sh -c 'uname -s')
UNAME_O := $(shell sh -c 'uname -o 2> /dev/null') UNAME_O := $(shell sh -c 'uname -o 2> /dev/null')
ifeq ($(UNAME_S),Darwin) # Mac OS X/MacPorts stuff ifeq ($(UNAME_S),Darwin) # Mac OS X/MacPorts stuff
PORTS_CFLAGS = -I/opt/local/include PORTS_CFLAGS := -I/opt/local/include
PORTS_LDFLAGS = -L/opt/local/lib PORTS_LDFLAGS := -L/opt/local/lib
else else
ifeq ($(UNAME_S),OpenBSD) # OpenBSD Ports stuff ifeq ($(UNAME_S),OpenBSD) # OpenBSD Ports stuff
PORTS_CFLAGS = `pkg-config --cflags libusb` PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
PORTS_LDFLAGS = `pkg-config --libs libusb` -ltermcap -pthread PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
else else
PORTS_CFLAGS = PORTS_CFLAGS :=
PORTS_LDFLAGS = PORTS_LDFLAGS :=
endif endif
endif endif
@ -63,11 +63,10 @@ else
BINARY = mspdebug BINARY = mspdebug
ifneq ($(filter $(UNAME_S),FreeBSD OpenBSD),) ifneq ($(filter $(UNAME_S),FreeBSD OpenBSD),)
OS_LIBS = -lpthread OS_LIBS =
else else
OS_LIBS = -lpthread -ldl OS_LIBS = -lpthread -ldl
endif endif
endif endif
INCLUDES = -I. -Isimio -Iformats -Itransport -Idrivers -Iutil -Iui INCLUDES = -I. -Isimio -Iformats -Itransport -Idrivers -Iutil -Iui