spsc-queue: add Makefile, .gitignore
authorBrian Norris <banorris@uci.edu>
Thu, 11 Oct 2012 23:45:39 +0000 (16:45 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 11 Oct 2012 23:45:39 +0000 (16:45 -0700)
spsc-queue/.gitignore [new file with mode: 0644]
spsc-queue/Makefile [new file with mode: 0644]

diff --git a/spsc-queue/.gitignore b/spsc-queue/.gitignore
new file mode 100644 (file)
index 0000000..b7d03a7
--- /dev/null
@@ -0,0 +1 @@
+/spsc-queue
diff --git a/spsc-queue/Makefile b/spsc-queue/Makefile
new file mode 100644 (file)
index 0000000..65a4686
--- /dev/null
@@ -0,0 +1,11 @@
+include ../benchmarks.mk
+
+TESTNAME = spsc-queue
+
+all: $(TESTNAME)
+
+$(TESTNAME): $(TESTNAME).cc queue.h eventcount.h
+       $(CXX) -o $@ $< $(CPPFLAGS) $(LDFLAGS)
+
+clean:
+       rm -f $(TESTNAME) *.o