X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FMakefile.local;h=c1314155d804bbb97cd9f0dfbe84f490d9960087;hb=0c8d32dabf4cec6957dfb4c071ecdb2fb4e4cd0e;hp=aae7fdac3e5156c3457b8568e47ecc0319824d3b;hpb=e90938cac9a539dc00c08b4439298cd05dada442;p=fips diff --git a/test/Makefile.local b/test/Makefile.local index aae7fda..c131415 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -13,11 +13,19 @@ 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 +test_programs += $(dir)/egl-opengl-link-gpa +test_programs += $(dir)/egl-opengl-dlopen-dlsym +test_programs += $(dir)/egl-opengl-dlopen-gpa +test_programs += $(dir)/egl-glesv2-link-call +test_programs += $(dir)/egl-glesv2-link-gpa +test_programs += $(dir)/egl-glesv2-dlopen-dlsym +test_programs += $(dir)/egl-glesv2-dlopen-gpa endif glx_link_call_srcs = \ $(dir)/glx-link-call.c \ - $(dir)/util.c + $(dir)/util-x11.c glx_link_call_modules = $(glx_link_call_srcs:.c=.o) @@ -26,7 +34,7 @@ $(dir)/glx-link-call: $(glx_link_call_modules) glx_link_gpa_srcs = \ $(dir)/glx-link-gpa.c \ - $(dir)/util.c + $(dir)/util-x11.c glx_link_gpa_modules = $(glx_link_gpa_srcs:.c=.o) @@ -35,7 +43,7 @@ $(dir)/glx-link-gpa: $(glx_link_gpa_modules) glx_link_gpaa_srcs = \ $(dir)/glx-link-gpaa.c \ - $(dir)/util.c + $(dir)/util-x11.c glx_link_gpaa_modules = $(glx_link_gpaa_srcs:.c=.o) @@ -44,7 +52,7 @@ $(dir)/glx-link-gpaa: $(glx_link_gpaa_modules) glx_dlopen_dlsym_srcs = \ $(dir)/glx-dlopen-dlsym.c \ - $(dir)/util.c + $(dir)/util-x11.c glx_dlopen_dlsym_modules = $(glx_dlopen_dlsym_srcs:.c=.o) @@ -53,7 +61,7 @@ $(dir)/glx-dlopen-dlsym: $(glx_dlopen_dlsym_modules) glx_dlopen_gpa_srcs = \ $(dir)/glx-dlopen-gpa.c \ - $(dir)/util.c + $(dir)/util-x11.c glx_dlopen_gpa_modules = $(glx_dlopen_gpa_srcs:.c=.o) @@ -62,13 +70,85 @@ $(dir)/glx-dlopen-gpa: $(glx_dlopen_gpa_modules) glx_dlopen_gpaa_srcs = \ $(dir)/glx-dlopen-gpaa.c \ - $(dir)/util.c + $(dir)/util-x11.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 $@ +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 $@ + +egl_opengl_link_gpa_srcs = \ + $(dir)/egl-opengl-link-gpa.c \ + $(dir)/util-x11.c + +egl_opengl_link_gpa_modules = $(egl_opengl_link_gpa_srcs:.c=.o) + +$(dir)/egl-opengl-link-gpa: $(egl_opengl_link_gpa_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@ + +egl_opengl_dlopen_dlsym_srcs = \ + $(dir)/egl-opengl-dlopen-dlsym.c \ + $(dir)/util-x11.c + +egl_opengl_dlopen_dlsym_modules = $(egl_opengl_dlopen_dlsym_srcs:.c=.o) + +$(dir)/egl-opengl-dlopen-dlsym: $(egl_opengl_dlopen_dlsym_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@ + +egl_opengl_dlopen_gpa_srcs = \ + $(dir)/egl-opengl-dlopen-gpa.c \ + $(dir)/util-x11.c + +egl_opengl_dlopen_gpa_modules = $(egl_opengl_dlopen_gpa_srcs:.c=.o) + +$(dir)/egl-opengl-dlopen-gpa: $(egl_opengl_dlopen_gpa_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@ + +egl_glesv2_link_call_srcs = \ + $(dir)/egl-glesv2-link-call.c \ + $(dir)/util-x11.c + +egl_glesv2_link_call_modules = $(egl_glesv2_link_call_srcs:.c=.o) + +$(dir)/egl-glesv2-link-call: $(egl_glesv2_link_call_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GLESV2_LDFLAGS) $(X11_LDFLAGS) -o $@ + +egl_glesv2_link_gpa_srcs = \ + $(dir)/egl-glesv2-link-gpa.c \ + $(dir)/util-x11.c + +egl_glesv2_link_gpa_modules = $(egl_glesv2_link_gpa_srcs:.c=.o) + +$(dir)/egl-glesv2-link-gpa: $(egl_glesv2_link_gpa_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GLESV2_LDFLAGS) $(X11_LDFLAGS) -o $@ + +egl_glesv2_dlopen_dlsym_srcs = \ + $(dir)/egl-glesv2-dlopen-dlsym.c \ + $(dir)/util-x11.c + +egl_glesv2_dlopen_dlsym_modules = $(egl_glesv2_dlopen_dlsym_srcs:.c=.o) + +$(dir)/egl-glesv2-dlopen-dlsym: $(egl_glesv2_dlopen_dlsym_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@ + +egl_glesv2_dlopen_gpa_srcs = \ + $(dir)/egl-glesv2-dlopen-gpa.c \ + $(dir)/util-x11.c + +egl_glesv2_dlopen_gpa_modules = $(egl_glesv2_dlopen_gpa_srcs:.c=.o) + +$(dir)/egl-glesv2-dlopen-gpa: $(egl_glesv2_dlopen_gpa_modules) + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@ + test: all $(test_programs) @${dir}/fips-test @@ -79,11 +159,27 @@ 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) \ + $(egl_opengl_link_gpa_srcs) \ + $(egl_opengl_dlopen_dlsym_srcs) \ + $(egl_opengl_dlopen_gpa_srcs) \ + $(egl_glesv2_link_call_srcs) \ + $(egl_glesv2_link_gpa_srcs) \ + $(egl_glesv2_dlopen_dlsym_srcs) \ + $(egl_glesv2_dlopen_gpa_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) \ + $(egl_opengl_link_gpa_modules) \ + $(egl_opengl_dlopen_dlsym_modules) \ + $(egl_opengl_dlopen_dlsym_modules) \ + $(egl_glesv2_link_call_modules) \ + $(egl_glesv2_link_gpa_modules) \ + $(egl_glesv2_dlopen_dlsym_modules) \ + $(egl_glesv2_dlopen_dlsym_modules)