5 extra_cflags += -I. $(GL_CFLAGS) $(X11_CFLAGS)
10 test_programs += $(dir)/glx-link-call
11 test_programs += $(dir)/glx-link-gpa
12 test_programs += $(dir)/glx-link-gpaa
13 test_programs += $(dir)/glx-dlopen-dlsym
14 test_programs += $(dir)/glx-dlopen-gpa
15 test_programs += $(dir)/glx-dlopen-gpaa
16 test_programs += $(dir)/egl-opengl-link-call
17 test_programs += $(dir)/egl-opengl-link-gpa
18 test_programs += $(dir)/egl-opengl-dlopen-dlsym
19 test_programs += $(dir)/egl-opengl-dlopen-gpa
22 glx_link_call_srcs = \
23 $(dir)/glx-link-call.c \
26 glx_link_call_modules = $(glx_link_call_srcs:.c=.o)
28 $(dir)/glx-link-call: $(glx_link_call_modules)
29 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
32 $(dir)/glx-link-gpa.c \
35 glx_link_gpa_modules = $(glx_link_gpa_srcs:.c=.o)
37 $(dir)/glx-link-gpa: $(glx_link_gpa_modules)
38 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
40 glx_link_gpaa_srcs = \
41 $(dir)/glx-link-gpaa.c \
44 glx_link_gpaa_modules = $(glx_link_gpaa_srcs:.c=.o)
46 $(dir)/glx-link-gpaa: $(glx_link_gpaa_modules)
47 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
49 glx_dlopen_dlsym_srcs = \
50 $(dir)/glx-dlopen-dlsym.c \
53 glx_dlopen_dlsym_modules = $(glx_dlopen_dlsym_srcs:.c=.o)
55 $(dir)/glx-dlopen-dlsym: $(glx_dlopen_dlsym_modules)
56 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
58 glx_dlopen_gpa_srcs = \
59 $(dir)/glx-dlopen-gpa.c \
62 glx_dlopen_gpa_modules = $(glx_dlopen_gpa_srcs:.c=.o)
64 $(dir)/glx-dlopen-gpa: $(glx_dlopen_gpa_modules)
65 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
67 glx_dlopen_gpaa_srcs = \
68 $(dir)/glx-dlopen-gpaa.c \
71 glx_dlopen_gpaa_modules = $(glx_dlopen_gpaa_srcs:.c=.o)
73 $(dir)/glx-dlopen-gpaa: $(glx_dlopen_gpaa_modules)
74 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
76 egl_opengl_link_call_srcs = \
77 $(dir)/egl-opengl-link-call.c \
80 egl_opengl_link_call_modules = $(egl_opengl_link_call_srcs:.c=.o)
82 $(dir)/egl-opengl-link-call: $(egl_opengl_link_call_modules)
83 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
85 egl_opengl_link_gpa_srcs = \
86 $(dir)/egl-opengl-link-gpa.c \
89 egl_opengl_link_gpa_modules = $(egl_opengl_link_gpa_srcs:.c=.o)
91 $(dir)/egl-opengl-link-gpa: $(egl_opengl_link_gpa_modules)
92 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
94 egl_opengl_dlopen_dlsym_srcs = \
95 $(dir)/egl-opengl-dlopen-dlsym.c \
98 egl_opengl_dlopen_dlsym_modules = $(egl_opengl_dlopen_dlsym_srcs:.c=.o)
100 $(dir)/egl-opengl-dlopen-dlsym: $(egl_opengl_dlopen_dlsym_modules)
101 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
103 egl_opengl_dlopen_gpa_srcs = \
104 $(dir)/egl-opengl-dlopen-gpa.c \
107 egl_opengl_dlopen_gpa_modules = $(egl_opengl_dlopen_gpa_srcs:.c=.o)
109 $(dir)/egl-opengl-dlopen-gpa: $(egl_opengl_dlopen_gpa_modules)
110 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
112 test: all $(test_programs)
118 $(glx_link_call_srcs) \
119 $(glx_link_gpa_srcs) \
120 $(glx_link_gpaa_srcs) \
121 $(glx_dlopen_dlsym_srcs) \
122 $(glx_dlopen_gpa_srcs) \
123 $(egl_opengl_link_call_srcs) \
124 $(egl_opengl_link_gpa_srcs) \
125 $(egl_opengl_dlopen_dlsym_srcs) \
126 $(egl_opengl_dlopen_gpa_srcs)
128 CLEAN += $(test_programs) \
129 $(glx_link_call_modules) \
130 $(glx_link_gpa_modules) \
131 $(glx_link_gpaa_modules) \
132 $(glx_dlopen_dlsym_modules) \
133 $(glx_dlopen_gpa_modules) \
134 $(egl_opengl_link_call_modules) \
135 $(egl_opengl_link_gpa_modules) \
136 $(egl_opengl_dlopen_dlsym_modules) \
137 $(egl_opengl_dlopen_dlsym_modules)