Linux: Fix error in Makefile

When the libusb implementation was moved into libusb/, this Makefile didn't
get updated properly.
This commit is contained in:
Alan Ott
2012-06-05 16:18:49 -04:00
parent 308ab89a26
commit 0a199c36ed
+3 -3
View File
@@ -19,7 +19,7 @@ CXXFLAGS ?= -Wall -g -fpic
LDFLAGS ?= -Wall -g
COBJS_HIDRAW = hid.o
COBJS = hid.o
CPPOBJS = ../hidtest/hidtest.o
OBJS = $(COBJS) $(CPPOBJS)
LIBS_UDEV = `pkg-config libudev --libs` -lrt
@@ -28,11 +28,11 @@ INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags`
# Console Test Program
hidtest-hidraw: $(COBJS_HIDRAW) $(CPPOBJS)
hidtest-hidraw: $(COBJS) $(CPPOBJS)
$(CXX) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@
# Shared Libs
libhidapi-hidraw.so: $(COBJS_HIDRAW)
libhidapi-hidraw.so: $(COBJS)
$(CC) $(LDFLAGS) $(LIBS_UDEV) -shared -fpic -Wl,-soname,$@.0 $^ -o $@
# Objects