summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDoug Pase <douglas@pase.us>2007-01-22 00:00:00 +0000
committerTim Besard <tim.besard@gmail.com>2011-10-27 16:18:30 +0200
commitfb9ae8907327f93cbeed6ffef914435a4e2ec651 (patch)
tree8432c40e2e646816a83caa83091a105ac08342f6 /Makefile
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..dd8854f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+SRC = Main.C Chain.C Experiment.C Lock.C Output.C Run.C SpinBarrier.C Timer.C Thread.C Types.C
+
+#
+# BIT = { 32 | 64 }
+# MODE = { NUMA | SMP }
+#
+BIT = 64
+# MODE = NUMA
+MODE = SMP
+# LIB = -lpthread -lnuma
+LIB = -lpthread
+
+HDR = $(SRC:.C=.h)
+OBJ = $(SRC:.C=.o)
+EXE = pChase$(BIT)_$(MODE)
+
+RM = /bin/rm
+MV = /bin/mv
+
+CXXFLAGS= -O3 -m$(BIT) -D$(MODE)
+
+.C.o:
+ $(CXX) -c $(CXXFLAGS) $<
+
+$(EXE): $(OBJ)
+ $(CXX) -o $(EXE) $(CXXFLAGS) $(OBJ) $(LIB)
+
+$(OBJ): $(HDR)
+
+rmexe:
+ $(RM) -rf $(EXE)
+
+rmobj:
+ $(RM) -rf $(OBJ)