mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 07:00:11 +01:00
libdrm: Fix modetest/modeprint to use automake stuff.
This commit is contained in:
parent
208fcff835
commit
0508530386
7 changed files with 18 additions and 21 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -65,4 +65,5 @@ tests/gem_readwrite
|
||||||
tests/openclose
|
tests/openclose
|
||||||
tests/setversion
|
tests/setversion
|
||||||
tests/updatedraw
|
tests/updatedraw
|
||||||
tests/modetest
|
tests/modeprint/modeprint
|
||||||
|
tests/modetest/modetest
|
||||||
|
|
|
||||||
|
|
@ -117,8 +117,8 @@ AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
libdrm/Makefile
|
libdrm/Makefile
|
||||||
libdrm/intel/Makefile
|
libdrm/intel/Makefile
|
||||||
libdrm/radeon/Makefile
|
|
||||||
shared-core/Makefile
|
shared-core/Makefile
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
linux-core/ttm/Makefile
|
tests/modeprint/Makefile
|
||||||
|
tests/modetest/Makefile
|
||||||
libdrm.pc])
|
libdrm.pc])
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ libdrmtest_la_LIBADD = \
|
||||||
|
|
||||||
LDADD = libdrmtest.la
|
LDADD = libdrmtest.la
|
||||||
|
|
||||||
noinst_SUBDIRS = \
|
SUBDIRS = \
|
||||||
modeprint \
|
modeprint \
|
||||||
modetest
|
modetest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
LD_PRELOAD=../../libdrm/.libs/libdrm.so ./app $@
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
all: app
|
|
||||||
|
|
||||||
#CFLAGS = -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L \
|
|
||||||
# -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE \
|
|
||||||
|
|
||||||
app: modetest.c
|
|
||||||
gcc $(CFLAGS) -o app -Wall -I../../libdrm -I../../libdrm/intel -I../../shared-core -L../../libdrm/.libs -L../../libdrm/intel/.libs -ldrm -ldrm_intel modetest.c
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@rm -f app
|
|
||||||
|
|
||||||
run: app
|
|
||||||
sudo ./test
|
|
||||||
13
tests/modetest/Makefile.am
Normal file
13
tests/modetest/Makefile.am
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
AM_CFLAGS = \
|
||||||
|
-I$(top_srcdir)/shared-core \
|
||||||
|
-I$(top_srcdir)/libdrm/intel/ \
|
||||||
|
-I$(top_srcdir)/libdrm
|
||||||
|
|
||||||
|
noinst_PROGRAMS = \
|
||||||
|
modetest
|
||||||
|
|
||||||
|
modetest_SOURCES = \
|
||||||
|
modetest.c
|
||||||
|
modetest_LDADD = \
|
||||||
|
$(top_builddir)/libdrm/libdrm.la \
|
||||||
|
$(top_builddir)/libdrm/intel/libdrm_intel.la
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
export LD_LIBRARY_PATH=../../libdrm/.libs:../../libdrm/intel/.libs
|
|
||||||
LD_PRELOAD=../../libdrm/.libs/libdrm.so ./app $@
|
|
||||||
Loading…
Add table
Reference in a new issue