diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-09-04 16:19:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-04 16:19:39 +0200 |
commit | 563c09751cd1aef0ce30b1edd86264430476f577 (patch) | |
tree | 859acd6fae30248e462c76c2073216a7397b21d3 /iceprog/Makefile | |
parent | 5899972bb2dac0e071740150d257de206409f501 (diff) | |
parent | 612ea8366290c11e5ec45b9830fe6f2e12df5ea9 (diff) | |
download | icestorm-563c09751cd1aef0ce30b1edd86264430476f577.tar.gz icestorm-563c09751cd1aef0ce30b1edd86264430476f577.tar.bz2 icestorm-563c09751cd1aef0ce30b1edd86264430476f577.zip |
Merge pull request #54 from adhorden/adhorden_iceprog_makefile_osx
Adam D. Horden iceprog makefile osx fix.
Diffstat (limited to 'iceprog/Makefile')
-rw-r--r-- | iceprog/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/iceprog/Makefile b/iceprog/Makefile index 5b9f790..9cadccf 100644 --- a/iceprog/Makefile +++ b/iceprog/Makefile @@ -1,6 +1,13 @@ include ../config.mk -LDLIBS = -L/usr/local/lib -lm -CFLAGS = -MD -O0 -ggdb -Wall -std=c99 -I/usr/local/include + +ifneq ($(shell uname -s),Darwin) + LDLIBS = -L/usr/local/lib -lm + CFLAGS = -MD -O0 -ggdb -Wall -std=c99 -I/usr/local/include +else + LIBFTDI_NAME = $(shell $(PKG_CONFIG) --exists libftdi1 && echo ftdi1 || echo ftdi) + LDLIBS = -L/usr/local/lib -l${LIBFTDI_NAME} -lm + CFLAGS = -MD -O0 -ggdb -Wall -std=c99 -I/usr/local/include +endif ifeq ($(STATIC),1) LDFLAGS += -static |