-
Notifications
You must be signed in to change notification settings - Fork 6
/
makefile
31 lines (24 loc) · 606 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Objects
OBJS := \
./hidapi/libusb/hid.o \
./main.o \
./rift.o
# Dependencies
C_DEPS := $(OBJS:%.o=%.d)
# Libraries
LIBS := \
-lusb-1.0
# All target
all: riftDriverPi
# Tool invocations
riftDriverPi: $(OBJS)
gcc -pthread -o "riftDriverPi" $(OBJS) $(USER_OBJS) $(LIBS)
@echo ' '
# Other Targets
clean:
-rm -rf $(EXECUTABLES)$(OBJS)$(C_DEPS) riftDriver
-@echo ' '
%.o: %.c
gcc -I./hidapi/hidapi -I/usr/include/libusb-1.0 -O0 -g3 -Wall -c -fmessage-length=0 `pkg-config libusb-1.0 --cflags` -fPIC -pthread -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
@echo ' '
.PHONY: all clean dependents