mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 21:30:20 +01:00
Forgot to add the new Makefile
This commit is contained in:
parent
b5e02f8eb3
commit
5654a78547
1 changed files with 27 additions and 0 deletions
27
tests/Makefile
Normal file
27
tests/Makefile
Normal file
|
|
@ -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)
|
||||
|
||||
Loading…
Add table
Reference in a new issue