2 INSTALL_ROOT_CPPFLAGS
= -isystem
$(INSTALL_ROOT
)/include
3 INSTALL_ROOT_LDFLAGS
= -L
$(INSTALL_ROOT
)/lib
-Wl
,-rpath
,$(INSTALL_ROOT
)/lib
10 CHECK_SRC
:= test-1.c test-2.c test-3.c test-6.c test-7.c test-8.c \
11 test-9.c test-10.c test-11.c test-12.c test-13.c test-14.c \
12 test-15.c test-16.c test-17.c test-__pthread_destroy_specific-skip.c
14 CHECK_OBJS
:= $(addsuffix .o
,$(basename $(notdir $(CHECK_SRC
))))
15 CHECK_PROGS
:= $(basename $(notdir $(CHECK_SRC
))) \
16 $(addsuffix -static
, $(basename $(CHECK_SRC
)))
19 $(CC
) $(INSTALL_ROOT_CPPFLAGS
) $(CPPFLAGS
) $(CFLAGS
) $< -c
-o
$@
22 $(CC
) $(INSTALL_ROOT_LDFLAGS
) $(LDFLAGS
) $< -o
$@
$(LDLIBS
)
25 $(CC
) -static
$(INSTALL_ROOT_LDFLAGS
) $(LDFLAGS
) $< -o
$@
$(LDLIBS
)
27 check: $(CHECK_OBJS
) $(CHECK_PROGS
)
28 for i in
$(CHECK_PROGS
); do \
29 echo
-n Running
$$i...\
; \
30 if .
/$$i 2>&1 > $$i.out
; \
39 rm -f
$(CHECK_OBJS
) $(CHECK_PROGS
) \
40 $(addsuffix .out
,$(basename $(notdir $(CHECK_PROGS
))))