X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=dc0b6f284db0d3ae05dd3bdfe53e8e1cb99df99f;hb=978759d6ea01cb406c634912a2e876aa8475955e;hp=8baa9a89bbe331fba34ebfff3976d6d9af32746d;hpb=ea45c84bfba9dc8d703e963b18948b886fcd614e;p=libc-test diff --git a/Makefile b/Makefile index 8baa9a8..dc0b6f2 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ CFLAGS:=-Isrc/common -I$(B)/common LDLIBS:=$(B)/common/libtest.a AR = $(CROSS_COMPILE)ar RANLIB = $(CROSS_COMPILE)ranlib +RUN_TEST = $(RUN_WRAP) $(B)/common/runtest all: %.mk: @@ -107,12 +108,11 @@ $(B)/api/main: $(api.OBJS) api/main.OBJS:=$(api.OBJS) $(api.OBJS):$(B)/common/options.h $(api.OBJS):CFLAGS+=-pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -$(api.OBJS):CFLAGS+=-DX_PS -DX_TPS -DX_SS all:$(B)/REPORT run:$(B)/REPORT clean: - rm -f $(OBJS) $(BINS) $(LIBS) $(B)/common/libtest.a $(B)/common/runtest $(B)/*/*.err + rm -f $(OBJS) $(BINS) $(LIBS) $(B)/common/libtest.a $(B)/common/runtest $(B)/common/options.h $(B)/*/*.err cleanall: clean rm -f $(B)/REPORT $(B)/*/REPORT $(B)/REPORT: @@ -140,7 +140,7 @@ $(B)/%: $(B)/%.o %.ld.err: % touch $@ %.err: % - $(B)/common/runtest ./$< >$@ || true + $(RUN_TEST) ./$< >$@ || true .PHONY: all run clean cleanall