Initial commit

This commit is contained in:
Thibaud Gasser 2018-05-23 01:21:30 +02:00
commit 75ff3cd870
3 changed files with 29 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.vscode/*

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
TARGET = spnav
LIBS = -Llib -lhidapi-libusb
CC = gcc
CFLAGS = -Wall -Wextra -pedantic
.PHONY: mrproper all default
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LIBS) -o $@
clean:
-rm -f *.o
mrproper: clean
-rm -f $(TARGET)

2
Readme.md Normal file
View File

@ -0,0 +1,2 @@
# Spacenav HDI driver
Simple driver for the spacenavigator 3d mice using HDI api