Skip to content

Commit 8184eb2

Browse files
LudovicRousseauQbicz
authored andcommitted
Linux: fix Makefile-manual to build hidtest
1 parent 3cea631 commit 8184eb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

linux/Makefile-manual

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ CXXFLAGS ?= -Wall -g -fpic
1919
LDFLAGS ?= -Wall -g
2020

2121

22-
COBJS = hid.o
23-
CPPOBJS = ../hidtest/hidtest.o
22+
COBJS = hid.o ../hidtest/test.o
23+
CPPOBJS =
2424
OBJS = $(COBJS) $(CPPOBJS)
2525
LIBS_UDEV = `pkg-config libudev --libs` -lrt
2626
LIBS = $(LIBS_UDEV)
@@ -29,7 +29,7 @@ INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags`
2929

3030
# Console Test Program
3131
hidtest-hidraw: $(COBJS) $(CPPOBJS)
32-
$(CXX) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@
32+
$(CC) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@
3333

3434
# Shared Libs
3535
libhidapi-hidraw.so: $(COBJS)
@@ -44,6 +44,6 @@ $(CPPOBJS): %.o: %.cpp
4444

4545

4646
clean:
47-
rm -f $(OBJS) hidtest-hidraw libhidapi-hidraw.so ../hidtest/hidtest.o
47+
rm -f $(OBJS) hidtest-hidraw libhidapi-hidraw.so $(COBJS) $(CPPOBJS)
4848

4949
.PHONY: clean libs

0 commit comments

Comments
 (0)