summaryrefslogtreecommitdiff
path: root/tests/mode/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mode/Makefile')
-rw-r--r--tests/mode/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/mode/Makefile b/tests/mode/Makefile
index a3d3b49a..7a9c3c24 100644
--- a/tests/mode/Makefile
+++ b/tests/mode/Makefile
@@ -1,11 +1,14 @@
-all: modetest
+all: app
#CFLAGS = -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L \
# -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE \
-modetest: modetest.c
- @gcc $(CFLAGS) -o modetest -Wall -I../../libdrm -I../../shared-core -L../../libdrm/.libs -ldrm modetest.c
+app: modetest.c
+ @gcc $(CFLAGS) -o app -Wall -I../../libdrm -I../../shared-core -L../../libdrm/.libs -ldrm modetest.c
clean:
- @rm -f modetest
+ @rm -f app
+
+run: app
+ @sudo ./test