# GNU Make solution makefile autogenerated by GENie
# Type "make help" for usage help

ifndef config
  config=debug32
endif
export config

PROJECTS := dummy_gc leak_gc test_bench

.PHONY: all clean help $(PROJECTS)

all: $(PROJECTS)

test_bench: 
	@echo "==== Building test_bench ($(config)) ===="
	@${MAKE} --no-print-directory -C . -f test_bench.make

leak_gc: test_bench
	@echo "==== Building leak_gc ($(config)) ===="
	@${MAKE} --no-print-directory -C . -f leak_gc.make

dummy_gc: test_bench
	@echo "==== Building dummy_gc ($(config)) ===="
	@${MAKE} --no-print-directory -C . -f dummy_gc.make

clean:
	@${MAKE} --no-print-directory -C . -f test_bench.make clean
	@${MAKE} --no-print-directory -C . -f leak_gc.make clean
	@${MAKE} --no-print-directory -C . -f dummy_gc.make clean

help:
	@echo "Usage: make [config=name] [target]"
	@echo ""
	@echo "CONFIGURATIONS:"
	@echo "   debug32"
	@echo "   release32"
	@echo "   debug64"
	@echo "   release64"
	@echo ""
	@echo "TARGETS:"
	@echo "   all (default)"
	@echo "   clean"
	@echo "   test_bench"
	@echo "   leak_gc"
	@echo "   dummy_gc"
	@echo ""
	@echo "For more information, see https://github.com/bkaradzic/genie"
