X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FMakefile.local;h=e934c736af5018d336f5f2eda9a6a224ad092b9c;hb=refs%2Fheads%2Fmaster;hp=6274e4f0be288a70513fed39797b79e3d5a2eb8a;hpb=b0a2c9dfcde1e0f679ceec3f4801f762eb09542a;p=fips diff --git a/test/Makefile.local b/test/Makefile.local index 6274e4f..e934c73 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -17,6 +17,10 @@ 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 = \ @@ -25,8 +29,10 @@ glx_link_call_srcs = \ glx_link_call_modules = $(glx_link_call_srcs:.c=.o) +PTHREAD_LDFLAGS = -pthread + $(dir)/glx-link-call: $(glx_link_call_modules) - $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ glx_link_gpa_srcs = \ $(dir)/glx-link-gpa.c \ @@ -35,7 +41,7 @@ glx_link_gpa_srcs = \ glx_link_gpa_modules = $(glx_link_gpa_srcs:.c=.o) $(dir)/glx-link-gpa: $(glx_link_gpa_modules) - $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ glx_link_gpaa_srcs = \ $(dir)/glx-link-gpaa.c \ @@ -44,7 +50,7 @@ glx_link_gpaa_srcs = \ glx_link_gpaa_modules = $(glx_link_gpaa_srcs:.c=.o) $(dir)/glx-link-gpaa: $(glx_link_gpaa_modules) - $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ glx_dlopen_dlsym_srcs = \ $(dir)/glx-dlopen-dlsym.c \ @@ -53,7 +59,7 @@ glx_dlopen_dlsym_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ glx_dlopen_gpa_srcs = \ $(dir)/glx-dlopen-gpa.c \ @@ -62,7 +68,7 @@ glx_dlopen_gpa_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ glx_dlopen_gpaa_srcs = \ $(dir)/glx-dlopen-gpaa.c \ @@ -71,7 +77,7 @@ glx_dlopen_gpaa_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ egl_opengl_link_call_srcs = \ $(dir)/egl-opengl-link-call.c \ @@ -80,7 +86,7 @@ egl_opengl_link_call_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ egl_opengl_link_gpa_srcs = \ $(dir)/egl-opengl-link-gpa.c \ @@ -89,7 +95,7 @@ egl_opengl_link_gpa_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ egl_opengl_dlopen_dlsym_srcs = \ $(dir)/egl-opengl-dlopen-dlsym.c \ @@ -98,7 +104,7 @@ egl_opengl_dlopen_dlsym_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) $(PTHREAD_LDFLAGS) -o $@ egl_opengl_dlopen_gpa_srcs = \ $(dir)/egl-opengl-dlopen-gpa.c \ @@ -107,7 +113,43 @@ egl_opengl_dlopen_gpa_srcs = \ 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 $@ + $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) $(PTHREAD_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) $(PTHREAD_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) $(PTHREAD_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) $(PTHREAD_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) $(PTHREAD_LDFLAGS) -o $@ test: all $(test_programs) @${dir}/fips-test @@ -123,7 +165,11 @@ SRCS := $(SRCS) \ $(egl_opengl_link_call_srcs) \ $(egl_opengl_link_gpa_srcs) \ $(egl_opengl_dlopen_dlsym_srcs) \ - $(egl_opengl_dlopen_gpa_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) \ @@ -134,4 +180,8 @@ CLEAN += $(test_programs) \ $(egl_opengl_link_call_modules) \ $(egl_opengl_link_gpa_modules) \ $(egl_opengl_dlopen_dlsym_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)