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
20 test_programs += $(dir)/egl-glesv2-link-call
21 test_programs += $(dir)/egl-glesv2-link-gpa
22 test_programs += $(dir)/egl-glesv2-dlopen-dlsym
23 test_programs += $(dir)/egl-glesv2-dlopen-gpa
26 glx_link_call_srcs = \
27 $(dir)/glx-link-call.c \
30 glx_link_call_modules = $(glx_link_call_srcs:.c=.o)
32 $(dir)/glx-link-call: $(glx_link_call_modules)
33 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
36 $(dir)/glx-link-gpa.c \
39 glx_link_gpa_modules = $(glx_link_gpa_srcs:.c=.o)
41 $(dir)/glx-link-gpa: $(glx_link_gpa_modules)
42 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
44 glx_link_gpaa_srcs = \
45 $(dir)/glx-link-gpaa.c \
48 glx_link_gpaa_modules = $(glx_link_gpaa_srcs:.c=.o)
50 $(dir)/glx-link-gpaa: $(glx_link_gpaa_modules)
51 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
53 glx_dlopen_dlsym_srcs = \
54 $(dir)/glx-dlopen-dlsym.c \
57 glx_dlopen_dlsym_modules = $(glx_dlopen_dlsym_srcs:.c=.o)
59 $(dir)/glx-dlopen-dlsym: $(glx_dlopen_dlsym_modules)
60 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
62 glx_dlopen_gpa_srcs = \
63 $(dir)/glx-dlopen-gpa.c \
66 glx_dlopen_gpa_modules = $(glx_dlopen_gpa_srcs:.c=.o)
68 $(dir)/glx-dlopen-gpa: $(glx_dlopen_gpa_modules)
69 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
71 glx_dlopen_gpaa_srcs = \
72 $(dir)/glx-dlopen-gpaa.c \
75 glx_dlopen_gpaa_modules = $(glx_dlopen_gpaa_srcs:.c=.o)
77 $(dir)/glx-dlopen-gpaa: $(glx_dlopen_gpaa_modules)
78 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
80 egl_opengl_link_call_srcs = \
81 $(dir)/egl-opengl-link-call.c \
84 egl_opengl_link_call_modules = $(egl_opengl_link_call_srcs:.c=.o)
86 $(dir)/egl-opengl-link-call: $(egl_opengl_link_call_modules)
87 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
89 egl_opengl_link_gpa_srcs = \
90 $(dir)/egl-opengl-link-gpa.c \
93 egl_opengl_link_gpa_modules = $(egl_opengl_link_gpa_srcs:.c=.o)
95 $(dir)/egl-opengl-link-gpa: $(egl_opengl_link_gpa_modules)
96 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
98 egl_opengl_dlopen_dlsym_srcs = \
99 $(dir)/egl-opengl-dlopen-dlsym.c \
102 egl_opengl_dlopen_dlsym_modules = $(egl_opengl_dlopen_dlsym_srcs:.c=.o)
104 $(dir)/egl-opengl-dlopen-dlsym: $(egl_opengl_dlopen_dlsym_modules)
105 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
107 egl_opengl_dlopen_gpa_srcs = \
108 $(dir)/egl-opengl-dlopen-gpa.c \
111 egl_opengl_dlopen_gpa_modules = $(egl_opengl_dlopen_gpa_srcs:.c=.o)
113 $(dir)/egl-opengl-dlopen-gpa: $(egl_opengl_dlopen_gpa_modules)
114 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
116 egl_glesv2_link_call_srcs = \
117 $(dir)/egl-glesv2-link-call.c \
120 egl_glesv2_link_call_modules = $(egl_glesv2_link_call_srcs:.c=.o)
122 $(dir)/egl-glesv2-link-call: $(egl_glesv2_link_call_modules)
123 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GLESV2_LDFLAGS) $(X11_LDFLAGS) -o $@
125 egl_glesv2_link_gpa_srcs = \
126 $(dir)/egl-glesv2-link-gpa.c \
129 egl_glesv2_link_gpa_modules = $(egl_glesv2_link_gpa_srcs:.c=.o)
131 $(dir)/egl-glesv2-link-gpa: $(egl_glesv2_link_gpa_modules)
132 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GLESV2_LDFLAGS) $(X11_LDFLAGS) -o $@
134 egl_glesv2_dlopen_dlsym_srcs = \
135 $(dir)/egl-glesv2-dlopen-dlsym.c \
138 egl_glesv2_dlopen_dlsym_modules = $(egl_glesv2_dlopen_dlsym_srcs:.c=.o)
140 $(dir)/egl-glesv2-dlopen-dlsym: $(egl_glesv2_dlopen_dlsym_modules)
141 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
143 egl_glesv2_dlopen_gpa_srcs = \
144 $(dir)/egl-glesv2-dlopen-gpa.c \
147 egl_glesv2_dlopen_gpa_modules = $(egl_glesv2_dlopen_gpa_srcs:.c=.o)
149 $(dir)/egl-glesv2-dlopen-gpa: $(egl_glesv2_dlopen_gpa_modules)
150 $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
152 test: all $(test_programs)
158 $(glx_link_call_srcs) \
159 $(glx_link_gpa_srcs) \
160 $(glx_link_gpaa_srcs) \
161 $(glx_dlopen_dlsym_srcs) \
162 $(glx_dlopen_gpa_srcs) \
163 $(egl_opengl_link_call_srcs) \
164 $(egl_opengl_link_gpa_srcs) \
165 $(egl_opengl_dlopen_dlsym_srcs) \
166 $(egl_opengl_dlopen_gpa_srcs) \
167 $(egl_glesv2_link_call_srcs) \
168 $(egl_glesv2_link_gpa_srcs) \
169 $(egl_glesv2_dlopen_dlsym_srcs) \
170 $(egl_glesv2_dlopen_gpa_srcs)
172 CLEAN += $(test_programs) \
173 $(glx_link_call_modules) \
174 $(glx_link_gpa_modules) \
175 $(glx_link_gpaa_modules) \
176 $(glx_dlopen_dlsym_modules) \
177 $(glx_dlopen_gpa_modules) \
178 $(egl_opengl_link_call_modules) \
179 $(egl_opengl_link_gpa_modules) \
180 $(egl_opengl_dlopen_dlsym_modules) \
181 $(egl_opengl_dlopen_dlsym_modules) \
182 $(egl_glesv2_link_call_modules) \
183 $(egl_glesv2_link_gpa_modules) \
184 $(egl_glesv2_dlopen_dlsym_modules) \
185 $(egl_glesv2_dlopen_dlsym_modules)