summaryrefslogtreecommitdiffstats
path: root/userspace/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/tests/Makefile')
-rw-r--r--userspace/tests/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/userspace/tests/Makefile b/userspace/tests/Makefile
new file mode 100644
index 0000000..3be451d
--- /dev/null
+++ b/userspace/tests/Makefile
@@ -0,0 +1,22 @@
+# Userspace Test Makefile
+
+CC = gcc
+CFLAGS = -Wall -Wextra -O2 -std=gnu11 -I../../kernel/include
+LDFLAGS =
+
+TARGET = test_vgpu_userspace
+SRC = test_vgpu_userspace.c
+
+all: $(TARGET)
+
+$(TARGET): $(SRC)
+ $(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
+
+clean:
+ rm -f $(TARGET)
+
+test: $(TARGET)
+ @echo "Running userspace test (requires driver loaded)..."
+ sudo ./$(TARGET)
+
+.PHONY: all clean test \ No newline at end of file