/mou/
/ser/
/targetutil/
+/testwrk/
/tgi/
/wrk/
endif
ifdef CMD_EXE
-RM := del /f
-EXE := .exe
+ RM := del /f
+ EXE := .exe
+ MKDIR = mkdir
else
-RM := rm -f
-EXE :=
+ RM := rm -f
+ EXE :=
+ MKDIR = mkdir -p
endif
+WORKDIR := ../testwrk
+
.PHONY: dotests clean
all: dotests
-bdiff:
- @$(CC) -o bdiff$(EXE) bdiff.c
+$(WORKDIR):
+ @$(MKDIR) $(WORKDIR)
+
+$(WORKDIR)/bdiff$(EXE): $(WORKDIR)
+ @$(CC) -o $(WORKDIR)/bdiff$(EXE) bdiff.c
-dotests: bdiff
+dotests: $(WORKDIR)/bdiff$(EXE)
@$(MAKE) -C val clean all
@$(MAKE) -C ref clean all
@$(MAKE) -C err clean all
@$(MAKE) -C ref clean
@$(MAKE) -C err clean
@$(MAKE) -C misc clean
- @$(RM) bdiff$(EXE)
+ @$(RM) $(WORKDIR)/bdiff$(EXE)
RM := rm -f
endif
+WORKDIR := ./../../testwrk
+
.PHONY: all clean
TESTS := $(patsubst %.c,%.prg,$(wildcard *.c))
RM := rm -f
endif
-DIFF := ./../bdiff
+WORKDIR := ./../../testwrk
+
+DIFF := $(WORKDIR)/bdiff
.PHONY: all clean
RM := rm -f
endif
-DIFF := ./../bdiff
+WORKDIR := ./../../testwrk
+
+DIFF := $(WORKDIR)/bdiff
CFLAGS := -O2 -Wall -W -Wextra -fwrapv -fno-strict-overflow
RM := rm -f
endif
+WORKDIR := ./../../testwrk
+
.PHONY: all clean
TESTS := $(patsubst %.c,%.prg,$(wildcard *.c))