Skip to content

Commit

Permalink
Use pkg-config for macos target
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Aug 12, 2024
1 parent ad789a6 commit 4a2da8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ libcamlib.so: $(FILES) $(EXTRAS)
ifeq ($(TARGET),m)
CFLAGS += -I/usr/local/include/libusb-1.0
libcamlib.dylib: $(FILES)
$(CC) -shared $(FILES) -L/usr/local/lib -lusb-1.0 -o libcamlib.so
$(CC) -shared $(FILES) -L/usr/local/lib `pkg-config --cflags --libs libusb` -o libcamlib.so
endif

%.o: %.c
Expand Down

0 comments on commit 4a2da8d

Please sign in to comment.