File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ CXXFLAGS ?= -Wall -g -fpic
19
19
LDFLAGS ?= -Wall -g
20
20
21
21
22
- COBJS = hid.o
23
- CPPOBJS = ../hidtest/hidtest.o
22
+ COBJS = hid.o ../hidtest/test.o
23
+ CPPOBJS =
24
24
OBJS = $(COBJS) $(CPPOBJS)
25
25
LIBS_UDEV = `pkg-config libudev --libs` -lrt
26
26
LIBS = $(LIBS_UDEV)
@@ -29,7 +29,7 @@ INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags`
29
29
30
30
# Console Test Program
31
31
hidtest-hidraw: $(COBJS) $(CPPOBJS)
32
- $(CXX ) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@
32
+ $(CC ) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@
33
33
34
34
# Shared Libs
35
35
libhidapi-hidraw.so: $(COBJS)
@@ -44,6 +44,6 @@ $(CPPOBJS): %.o: %.cpp
44
44
45
45
46
46
clean:
47
- rm -f $(OBJS) hidtest-hidraw libhidapi-hidraw.so ../hidtest/hidtest.o
47
+ rm -f $(OBJS) hidtest-hidraw libhidapi-hidraw.so $(COBJS) $(CPPOBJS)
48
48
49
49
.PHONY: clean libs
You can’t perform that action at this time.
0 commit comments