1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 06:30:16 +00:00
cc65/test/Makefile

53 lines
852 B
Makefile
Raw Normal View History

# toplevel makefile for the regression tests
MAKE := make --no-print-dir
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
2014-11-25 11:56:45 +00:00
RM := del /f
EXE := .exe
MKDIR = mkdir
RMDIR = rmdir
else
2014-11-25 11:56:45 +00:00
RM := rm -f
EXE :=
MKDIR = mkdir -p
RMDIR = rmdir
endif
2014-11-25 11:56:45 +00:00
WORKDIR := ../testwrk
.PHONY: dotests clean
all: dotests
2014-11-25 11:56:45 +00:00
$(WORKDIR):
@$(MKDIR) $(WORKDIR)
$(WORKDIR)/bdiff$(EXE): $(WORKDIR)
@$(CC) -o $(WORKDIR)/bdiff$(EXE) bdiff.c
2014-11-25 11:56:45 +00:00
dotests: $(WORKDIR)/bdiff$(EXE)
2014-11-23 11:18:19 +00:00
@$(MAKE) -C val clean all
@$(MAKE) -C ref clean all
@$(MAKE) -C err clean all
@$(MAKE) -C misc clean all
2014-11-26 00:38:30 +00:00
continue: $(WORKDIR)/bdiff$(EXE)
@$(MAKE) -C val all
@$(MAKE) -C ref all
@$(MAKE) -C err all
@$(MAKE) -C misc all
clean:
@$(MAKE) -C val clean
@$(MAKE) -C ref clean
@$(MAKE) -C err clean
2014-11-22 21:22:30 +00:00
@$(MAKE) -C misc clean
2014-11-25 11:56:45 +00:00
@$(RM) $(WORKDIR)/bdiff$(EXE)
@$(RMDIR) $(WORKDIR)