This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Tortuga/makefile
T
2015-08-18 04:01:16 +10:00

24 lines
401 B
Makefile

OUTDIR=out
all: $(OUTDIR)
$(MAKE) -C common
$(MAKE) -C src
debug: export CXXFLAGS+=-g
debug: clean all
$(OUTDIR):
mkdir $(OUTDIR)
clean:
ifeq ($(OS),Windows_NT)
$(RM) *.o *.a *.exe
else ifeq ($(shell uname), Linux)
find . -type f -name '*.o' -exec rm -f -r -v {} \;
find . -type f -name '*.a' -exec rm -f -r -v {} \;
rm -f -v $(OUT)
find . -empty -type d -delete
endif
rebuild: clean all