Skip to content

Commit 3cea631

Browse files
LudovicRousseauQbicz
authored andcommitted
macOS: fix Makefile-manual to build hidtest
1 parent c1b3078 commit 3cea631

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mac/Makefile-manual

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ all: hidtest
1010

1111
CC=gcc
1212
CXX=g++
13-
COBJS=hid.o
14-
CPPOBJS=../hidtest/hidtest.o
15-
OBJS=$(COBJS) $(CPPOBJS)
13+
COBJS=hid.o ../hidtest/test.o
14+
OBJS=$(COBJS)
1615
CFLAGS+=-I../hidapi -Wall -g -c
1716
LIBS=-framework IOKit -framework CoreFoundation
1817

1918

2019
hidtest: $(OBJS)
21-
g++ -Wall -g $^ $(LIBS) -o hidtest
20+
$(CC) -Wall -g $^ $(LIBS) -o hidtest
2221

2322
$(COBJS): %.o: %.c
2423
$(CC) $(CFLAGS) $< -o $@

0 commit comments

Comments
 (0)