]> git.cworth.org Git - fips/blob - test/Makefile.local
b40ee283656fa6f35e08ba47e1838fdb88ce41b5
[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 endif
12
13 glx_link_call_srcs = \
14         $(dir)/glx-link-call.c \
15         $(dir)/util.c
16
17 glx_link_call_modules = $(glx_link_call_srcs:.c=.o)
18
19 $(dir)/glx-link-call: $(glx_link_call_modules)
20         $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(GL_LDFLAGS) $(X11_LDFLAGS) -o $@
21
22 test: all $(test_programs)
23         @${dir}/fips-test
24
25 check: test
26
27 SRCS := $(SRCS) $(glx_link_call_srcs)
28
29 CLEAN += $(test_programs) $(glx_link_call_modules)