1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-04 17:04:58 +00:00
cc65/test/Makefile

44 lines
679 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
else
2014-11-25 11:56:45 +00:00
RM := rm -f
EXE :=
MKDIR = mkdir -p
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
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)