ifeq ($(HAVE_X11),Yes)
test_programs += $(dir)/glx-link-call
test_programs += $(dir)/glx-dlopen-dlsym
+test_programs += $(dir)/glx-dlopen-gpa
+test_programs += $(dir)/glx-dlopen-gpaa
endif
glx_link_call_srcs = \
$(dir)/glx-dlopen-dlsym: $(glx_dlopen_dlsym_modules)
$(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
+glx_dlopen_gpa_srcs = \
+ $(dir)/glx-dlopen-gpa.c \
+ $(dir)/util.c
+
+glx_dlopen_gpa_modules = $(glx_dlopen_gpa_srcs:.c=.o)
+
+$(dir)/glx-dlopen-gpa: $(glx_dlopen_gpa_modules)
+ $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
+
+glx_dlopen_gpaa_srcs = \
+ $(dir)/glx-dlopen-gpaa.c \
+ $(dir)/util.c
+
+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 $@
+
test: all $(test_programs)
@${dir}/fips-test
check: test
-SRCS := $(SRCS) $(glx_link_call_srcs) $(glx_dlopen_dlsym_srcs)
+SRCS := $(SRCS) $(glx_link_call_srcs) $(glx_dlopen_dlsym_srcs) $(glx_dlopen_gpa_srcs)
-CLEAN += $(test_programs) $(glx_link_call_modules) $(glx_dlopen_dlsym_modules)
+CLEAN += $(test_programs) $(glx_link_call_modules) $(glx_dlopen_dlsym_modules) $(glx_dlopen_gpa_modules)