summaryrefslogtreecommitdiff
path: root/tests/test-progs/mwait/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-progs/mwait/Makefile')
-rw-r--r--tests/test-progs/mwait/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test-progs/mwait/Makefile b/tests/test-progs/mwait/Makefile
new file mode 100644
index 000000000..6b888118d
--- /dev/null
+++ b/tests/test-progs/mwait/Makefile
@@ -0,0 +1,20 @@
+
+CPP := g++
+
+TEST_OBJS := mwait.o
+TEST_PROGS := $(TEST_OBJS:.o=)
+
+# ==== Rules ==================================================================
+
+.PHONY: default clean
+
+default: $(TEST_PROGS)
+
+clean:
+ $(RM) $(TEST_OBJS) $(TEST_PROGS)
+
+$(TEST_PROGS): $(TEST_OBJS)
+ $(CPP) -static -o $@ $@.o pthread.o
+
+%.o: %.c Makefile
+ $(CPP) -c -o $@ $*.c -msse3