-
Notifications
You must be signed in to change notification settings - Fork 185
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
OSX Makefile changes #218
base: master
Are you sure you want to change the base?
OSX Makefile changes #218
Conversation
Duplicate with #193 |
With the prerequisite dependency (
The software itself only appears to work correctly when run with sudo, however. When run without root privileges it returns a Also worthy of note, OS X uses launchd instead of systemd. The way of having the utility start automatically on boot on OS X is making a Launch Daemon. |
debug: CXXFLAGS += -g -Wextra -pedantic | ||
debug: bin/$(PROGN) | ||
|
||
lib/lib$(PROGN).so: $(LIBSRCS) | ||
@mkdir -p lib | ||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,lib$(PROGN).so -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LIBS) | ||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared $(LINKFLAGS) -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LIBS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be
this^ and the following: -LINKFLAGS
+LINK_FLAGS and LDFLAGS="-L/opt/homebrew/Cellar/hidapi/0.14.0/lib" CXXFLAGS="-I/opt/homebrew/Cellar/hidapi/0.14.0/include" make all Compiles on Sonoma 14.7 with a latest version of g810-led ( |
See #174