2014-11-22 18:28:05 +01:00
|
|
|
|
2014-12-17 17:44:39 -05:00
|
|
|
# top-level makefile for the regression tests
|
2014-11-22 18:28:05 +01:00
|
|
|
|
2014-12-17 17:35:18 -05:00
|
|
|
# You can comment this special target when you debug the regression tests.
|
|
|
|
# Then, make will give you more progress reports.
|
|
|
|
.SILENT:
|
2014-11-22 18:28:05 +01:00
|
|
|
|
2014-11-24 20:57:58 +01:00
|
|
|
ifneq ($(shell echo),)
|
2014-12-17 17:44:39 -05:00
|
|
|
CMD_EXE := 1
|
2014-11-24 20:57:58 +01:00
|
|
|
endif
|
2014-11-22 18:28:05 +01:00
|
|
|
|
2014-11-24 20:57:58 +01:00
|
|
|
ifdef CMD_EXE
|
2014-11-25 12:56:45 +01:00
|
|
|
EXE := .exe
|
2015-06-27 00:03:45 +02:00
|
|
|
MKDIR = mkdir $(subst /,\,$1)
|
2015-07-11 00:01:39 +02:00
|
|
|
RMDIR = -rmdir /s /q $(subst /,\,$1)
|
2014-11-24 20:57:58 +01:00
|
|
|
else
|
2014-11-25 12:56:45 +01:00
|
|
|
EXE :=
|
2015-06-27 00:03:45 +02:00
|
|
|
MKDIR = mkdir $1
|
2015-07-10 11:11:41 +02:00
|
|
|
RMDIR = $(RM) -r $1
|
2014-11-24 20:57:58 +01:00
|
|
|
endif
|
|
|
|
|
2014-11-25 12:56:45 +01:00
|
|
|
WORKDIR := ../testwrk
|
|
|
|
|
2015-06-27 00:03:45 +02:00
|
|
|
CC := gcc
|
|
|
|
|
2016-06-01 23:51:43 +02:00
|
|
|
.PHONY: all dotests continue mostlyclean clean
|
2014-11-24 20:57:58 +01:00
|
|
|
|
|
|
|
all: dotests
|
|
|
|
|
2014-11-25 12:56:45 +01:00
|
|
|
$(WORKDIR):
|
2015-06-27 00:03:45 +02:00
|
|
|
$(call MKDIR,$(WORKDIR))
|
2014-11-25 12:56:45 +01:00
|
|
|
|
2014-12-17 17:35:18 -05:00
|
|
|
$(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR)
|
|
|
|
$(CC) -O2 -o $@ $<
|
2014-11-24 20:57:58 +01:00
|
|
|
|
2014-12-18 14:30:35 -05:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2016-06-01 23:51:43 +02:00
|
|
|
dotests: mostlyclean continue
|
2014-11-22 18:28:05 +01:00
|
|
|
|
2014-11-26 01:38:30 +01:00
|
|
|
continue: $(WORKDIR)/bdiff$(EXE)
|
2016-09-03 16:45:59 +02:00
|
|
|
@$(MAKE) -C assembler all
|
2016-09-20 17:37:10 +02:00
|
|
|
@$(MAKE) -C disassembler all
|
2014-11-26 01:38:30 +01:00
|
|
|
@$(MAKE) -C val all
|
|
|
|
@$(MAKE) -C ref all
|
|
|
|
@$(MAKE) -C err all
|
|
|
|
@$(MAKE) -C misc all
|
|
|
|
|
2016-06-01 23:51:43 +02:00
|
|
|
mostlyclean:
|
2014-11-22 18:28:05 +01:00
|
|
|
@$(MAKE) -C val clean
|
|
|
|
@$(MAKE) -C ref clean
|
|
|
|
@$(MAKE) -C err clean
|
2014-11-22 22:22:30 +01:00
|
|
|
@$(MAKE) -C misc clean
|
2014-12-17 17:35:18 -05:00
|
|
|
|
2016-06-01 23:51:43 +02:00
|
|
|
clean: mostlyclean
|
2015-07-10 11:11:41 +02:00
|
|
|
@$(call RMDIR,$(WORKDIR))
|