]> git.cworth.org Git - fips/blob - test/Makefile.local
6274e4f0be288a70513fed39797b79e3d5a2eb8a
[fips] / test / Makefile.local
1 # -*- makefile -*-
2
3 dir := test
4
5 extra_cflags += -I. $(GL_CFLAGS) $(X11_CFLAGS)
6
7 test_programs =
8
9 ifeq ($(HAVE_X11),Yes)
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 endif
21
22 glx_link_call_srcs = \
23         $(dir)/glx-link-call.c \
24         $(dir)/util-x11.c
25
26 glx_link_call_modules = $(glx_link_call_srcs:.c=.o)
27
28 $(dir)/glx-link-call: $(glx_link_call_modules)
29         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
30
31 glx_link_gpa_srcs = \
32         $(dir)/glx-link-gpa.c \
33         $(dir)/util-x11.c
34
35 glx_link_gpa_modules = $(glx_link_gpa_srcs:.c=.o)
36
37 $(dir)/glx-link-gpa: $(glx_link_gpa_modules)
38         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
39
40 glx_link_gpaa_srcs = \
41         $(dir)/glx-link-gpaa.c \
42         $(dir)/util-x11.c
43
44 glx_link_gpaa_modules = $(glx_link_gpaa_srcs:.c=.o)
45
46 $(dir)/glx-link-gpaa: $(glx_link_gpaa_modules)
47         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
48
49 glx_dlopen_dlsym_srcs = \
50         $(dir)/glx-dlopen-dlsym.c \
51         $(dir)/util-x11.c
52
53 glx_dlopen_dlsym_modules = $(glx_dlopen_dlsym_srcs:.c=.o)
54
55 $(dir)/glx-dlopen-dlsym: $(glx_dlopen_dlsym_modules)
56         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
57
58 glx_dlopen_gpa_srcs = \
59         $(dir)/glx-dlopen-gpa.c \
60         $(dir)/util-x11.c
61
62 glx_dlopen_gpa_modules = $(glx_dlopen_gpa_srcs:.c=.o)
63
64 $(dir)/glx-dlopen-gpa: $(glx_dlopen_gpa_modules)
65         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
66
67 glx_dlopen_gpaa_srcs = \
68         $(dir)/glx-dlopen-gpaa.c \
69         $(dir)/util-x11.c
70
71 glx_dlopen_gpaa_modules = $(glx_dlopen_gpaa_srcs:.c=.o)
72
73 $(dir)/glx-dlopen-gpaa: $(glx_dlopen_gpaa_modules)
74         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
75
76 egl_opengl_link_call_srcs = \
77         $(dir)/egl-opengl-link-call.c \
78         $(dir)/util-x11.c
79
80 egl_opengl_link_call_modules = $(egl_opengl_link_call_srcs:.c=.o)
81
82 $(dir)/egl-opengl-link-call: $(egl_opengl_link_call_modules)
83         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
84
85 egl_opengl_link_gpa_srcs = \
86         $(dir)/egl-opengl-link-gpa.c \
87         $(dir)/util-x11.c
88
89 egl_opengl_link_gpa_modules = $(egl_opengl_link_gpa_srcs:.c=.o)
90
91 $(dir)/egl-opengl-link-gpa: $(egl_opengl_link_gpa_modules)
92         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
93
94 egl_opengl_dlopen_dlsym_srcs = \
95         $(dir)/egl-opengl-dlopen-dlsym.c \
96         $(dir)/util-x11.c
97
98 egl_opengl_dlopen_dlsym_modules = $(egl_opengl_dlopen_dlsym_srcs:.c=.o)
99
100 $(dir)/egl-opengl-dlopen-dlsym: $(egl_opengl_dlopen_dlsym_modules)
101         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
102
103 egl_opengl_dlopen_gpa_srcs = \
104         $(dir)/egl-opengl-dlopen-gpa.c \
105         $(dir)/util-x11.c
106
107 egl_opengl_dlopen_gpa_modules = $(egl_opengl_dlopen_gpa_srcs:.c=.o)
108
109 $(dir)/egl-opengl-dlopen-gpa: $(egl_opengl_dlopen_gpa_modules)
110         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
111
112 test: all $(test_programs)
113         @${dir}/fips-test
114
115 check: test
116
117 SRCS := $(SRCS) \
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)
127
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)