summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-10-10 02:49:06 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-10-10 02:49:06 +0000
commit5654a78547d0903c0ea2c290cbfac6ea9e777b9a (patch)
tree48a9050ac9001b7ff75fb8d55da80d6758e28d72
parentb5e02f8eb3b9c178014e510e5999fab671031a6c (diff)
Forgot to add the new Makefile
-rw-r--r--tests/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 00000000..54d90201
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,27 @@
+
+# These definitions are for handling dependencies in the out of kernel build.
+
+PROGS = dristat drmstat
+
+CLEANFILES = *.o *.ko $(PROGS) .depend .*.flags .*.d
+
+# Build test utilities
+
+PRGCFLAGS = $(CFLAGS) -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L \
+ -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE \
+ -I. -I../libdrm -I../shared-core
+
+DRMSTATLIBS = -L../libdrm -lxf86drm
+
+
+programs: $(PROGS)
+
+dristat: dristat.c
+ $(CC) $(PRGCFLAGS) $< -o $@
+
+drmstat: drmstat.c
+ $(CC) $(PRGCFLAGS) $< -o $@ $(DRMSTATLIBS)
+
+clean:
+ rm -f $(CLEANFILES)
+