Add canutil dependency for bit field manipulation.
authorChristopher Peplin <chris.peplin@rhubarbtech.com>
Fri, 27 Dec 2013 19:14:14 +0000 (14:14 -0500)
committerChristopher Peplin <chris.peplin@rhubarbtech.com>
Fri, 27 Dec 2013 19:14:14 +0000 (14:14 -0500)
.gitignore [new file with mode: 0644]
.gitmodules [new file with mode: 0644]
Makefile
deps/canutil [new submodule]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..b4225c0
--- /dev/null
@@ -0,0 +1,4 @@
+*.o
+.DS_Store
+*~
+*.bin
diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..6114ce5
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "deps/canutil"]
+       path = deps/canutil
+       url = https://github.com/openxc/canutil
index 49e22f2..0dd9359 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC = gcc
-INCLUDES = -Isrc
+INCLUDES = -Isrc -Ideps/canutil/src
 CFLAGS = $(INCLUDES) -c -w -Wall -Werror -g -ggdb
 LDFLAGS =
 LDLIBS = -lcheck
@@ -16,6 +16,7 @@ ifneq ($(OSTYPE),Darwin)
 endif
 
 SRC = $(wildcard src/**/*.c)
+SRC = $(wildcard deps/**/*.c)
 OBJS = $(SRC:.c=.o)
 TEST_SRC = $(wildcard $(TEST_DIR)/*.c)
 TEST_OBJS = $(TEST_SRC:.c=.o)
diff --git a/deps/canutil b/deps/canutil
new file mode 160000 (submodule)
index 0000000..04a4db7
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 04a4db7d336ae2cae94ac3234086b22fbf1339f0