]> git.cworth.org Git - fips/blobdiff - test/Makefile.local
test: Add support for EGL-based test, (and one EGL-based test)
[fips] / test / Makefile.local
index dfcbe8237b50c0bd24be3a59385883bb8cbedfeb..69e524aa16a0a5bc3960fded1ac769e4b2feca24 100644 (file)
@@ -13,6 +13,7 @@ test_programs += $(dir)/glx-link-gpaa
 test_programs += $(dir)/glx-dlopen-dlsym
 test_programs += $(dir)/glx-dlopen-gpa
 test_programs += $(dir)/glx-dlopen-gpaa
+test_programs += $(dir)/egl-opengl-link-call
 endif
 
 glx_link_call_srcs = \
@@ -69,6 +70,15 @@ glx_dlopen_gpaa_modules = $(glx_dlopen_gpaa_srcs:.c=.o)
 $(dir)/glx-dlopen-gpaa: $(glx_dlopen_gpaa_modules)
        $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
 
+egl_opengl_link_call_srcs = \
+       $(dir)/egl-opengl-link-call.c \
+       $(dir)/util-x11.c
+
+egl_opengl_link_call_modules = $(egl_opengl_link_call_srcs:.c=.o)
+
+$(dir)/egl-opengl-link-call: $(egl_opengl_link_call_modules)
+       $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
+
 test: all $(test_programs)
        @${dir}/fips-test
 
@@ -79,11 +89,13 @@ SRCS := $(SRCS) \
        $(glx_link_gpa_srcs) \
        $(glx_link_gpaa_srcs) \
        $(glx_dlopen_dlsym_srcs) \
-       $(glx_dlopen_gpa_srcs)
+       $(glx_dlopen_gpa_srcs) \
+       $(egl_opengl_link_call_srcs)
 
 CLEAN += $(test_programs) \
        $(glx_link_call_modules) \
        $(glx_link_gpa_modules) \
        $(glx_link_gpaa_modules) \
        $(glx_dlopen_dlsym_modules) \
-       $(glx_dlopen_gpa_modules)
+       $(glx_dlopen_gpa_modules) \
+       $(egl_opengl_link_call_modules)