summaryrefslogtreecommitdiffstats
path: root/userspace/tests/Makefile
blob: 3be451d0979623095f436c503d2c21b2e3011bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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