Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile doesn't work for OS X El Capitan 10.11.4 #1

Closed
martinrleon opened this issue Jun 10, 2016 · 1 comment
Closed

Makefile doesn't work for OS X El Capitan 10.11.4 #1

martinrleon opened this issue Jun 10, 2016 · 1 comment

Comments

@martinrleon
Copy link

First, THANK YOU!!!!!!! This worked straight out of the box once I got it to link and compile.

Once I was able to get brew to install libusb without any errors, I had to add /usr/local/include to CC and /usr/local/lib to LD:

CPPFLAGS = -v -g -O0 -I /usr/local/include/
LDFLAGS = -lusb-1.0 -L/usr/local/lib
PROGRAM = uhubctl

$(PROGRAM): $(PROGRAM).o
cc $(CPPFLAGS) $@.c -o $@ $(LDFLAGS)

clean:
rm -rf $(PROGRAM).o $(PROGRAM).dSYM $(PROGRAM)

@mvp
Copy link
Owner

mvp commented Jun 22, 2016

martinrleon: not sure why this not worked for you out of the box - it works on my Mac with most recent El Capitan release. At any rate, it seems like your local misconfiguration, and I don't think it deserves having open issue. Please report with more details if you think it should be reopened. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants