include ../Makefile.inc

ifeq ($(CROSS),false)
  FULL_PROJECT_TARGETS = full1 full2
else
  FULL_PROJECT_TARGETS = full1
endif

full_project: full1 full2

full1:
	$(PREFIX)gnatmake -P full1.gpr
ifeq ($(RUN),true)
	bin$(S)debug$(S)text_io_example$(EXE)
	bin$(S)debug$(S)tef$(EXE)
	bin$(S)debug$(S)tgef$(EXE)
endif
	$(PREFIX)gnatmake -f -XBUILD=release_optimized -P full1.gpr

full2:
	$(PREFIX)gnatmake -P full2.gpr
ifeq ($(RUN),true)
	prog$(S)debug$(S)test_cl$(EXE)
endif
	$(PREFIX)gnatmake -f -XBUILD=release_optimized -P full2.gpr

clean:
	$(PREFIX)gnatclean -P full1.gpr
	$(PREFIX)gnatclean -f -XBUILD=release_optimized -P full1.gpr
	$(PREFIX)gnatclean -P full2.gpr
	$(PREFIX)gnatclean -f -XBUILD=release_optimized -P full2.gpr

.PHONY: full1 full2 clean
