X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=96cc89a73b2c105e05b75262a93c8f4ee9fa0da8;hb=a5138aacb2d7b0cf08e6ac9d5ddb8d2841ae2c30;hp=353c268589526ff83293c15e1d000f7b14b6bfb8;hpb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;p=libc-test diff --git a/Makefile b/Makefile index 353c268..96cc89a 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,15 @@ N:=$(1) -include $(1).mk $(1) $(1)-static: $$($(1).OBJS) $(1).so: $$($(1).LOBJS) +# make sure dynamic and static binaries are not run parallel (matters for some tests eg ipc) +$(1)-static.err: $(1).err endef $(foreach n,$(filter-out $(SPEC_PATTERNS),$(NAMES)),$(eval $(call template,$(n)))) MBINS:=$(filter src/math/%,$(NAMES)) BINS:=$(foreach n,$(NAMES),$($(n).BINS)) src/api/main $(MBINS) -LIBS:=$(foreach n,$(NAMES),$($(n).LIBS)) src/common/libtest.a +LIBS:=$(foreach n,$(NAMES),$($(n).LIBS)) ERRS:=$(BINS:%=%.err) define target_template @@ -39,9 +41,11 @@ endef $(foreach d,$(DIRS),$(eval $(call target_template,$(d)))) +src/common/all: src/common/libtest.a + all:REPORT clean: - rm -f $(OBJS) $(BINS) $(LIBS) src/*/*.err + rm -f $(OBJS) $(BINS) $(LIBS) src/common/libtest.a src/*/*.err cleanall: clean rm -f REPORT src/*/REPORT REPORT: @@ -52,7 +56,7 @@ src/common/libtest.a: $(filter src/common/%,$(OBJS)) $(AR) rc $@ $^ $(RANLIB) $@ -$(BINS): src/common/libtest.a +$(BINS) $(LIBS): src/common/libtest.a $(OBJS): src/common/test.h src/common/mtest.o: src/common/mtest.h