Forgot to add the new Makefile
authorJon Smirl <jonsmirl@yahoo.com>
Sun, 10 Oct 2004 02:49:06 +0000 (02:49 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Sun, 10 Oct 2004 02:49:06 +0000 (02:49 +0000)
tests/Makefile [new file with mode: 0644]

diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644 (file)
index 0000000..54d9020
--- /dev/null
@@ -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)
+