X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FMakefile.local;h=09072e0169e89cd0c590fff9b66d062613cbf8a8;hb=5e4dbac425d1c9f1461d071b2a05d26b2c75831f;hp=b40ee283656fa6f35e08ba47e1838fdb88ce41b5;hpb=18a600531c73bfd36f9d8d0814ee6d22d1456d67;p=fips diff --git a/test/Makefile.local b/test/Makefile.local index b40ee28..09072e0 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -8,6 +8,7 @@ test_programs = ifeq ($(HAVE_X11),Yes) test_programs += $(dir)/glx-link-call +test_programs += $(dir)/glx-dlopen-dlsym endif glx_link_call_srcs = \ @@ -19,11 +20,20 @@ glx_link_call_modules = $(glx_link_call_srcs:.c=.o) $(dir)/glx-link-call: $(glx_link_call_modules) $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@ +glx_dlopen_dlsym_srcs = \ + $(dir)/glx-dlopen-dlsym.c \ + $(dir)/util.c + +glx_dlopen_dlsym_modules = $(glx_dlopen_dlsym_srcs:.c=.o) + +$(dir)/glx-dlopen-dlsym: $(glx_dlopen_dlsym_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) +SRCS := $(SRCS) $(glx_link_call_srcs) $(glx_dlopen_dlsym_srcs) -CLEAN += $(test_programs) $(glx_link_call_modules) +CLEAN += $(test_programs) $(glx_link_call_modules) $(glx_dlopen_dlsym_modules)