# Copyright (C) 2000-2002 Simon Wright. All Rights Reserved.
#
#      This program is free software; you can redistribute it
#      and/or modify it under the terms of the Ada Community
#      License which comes with this Library.
#
#      This program is distributed in the hope that it will be
#      useful, but WITHOUT ANY WARRANTY; without even the implied
#      warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#      PURPOSE. See the Ada Community License for more details.
#      You should have received a copy of the Ada Community
#      License with this library, in the file named "Ada Community
#      License" or "ACL". If not, contact the author of this library
#      for a copy.
#

# $Id: makefile-demo,v 1.5.2.2 2002/10/24 21:05:19 simon Exp $

# (GNU) Makefile for demos of Booch Components distribution.

########
# Demos

GNATMAKE = gnatmake
GNATMAKE_FLAGS = -I.. -O2 -g -gnatqQafy -gnatwaL

all:: demos

DEMOS += ada_units
ada_units: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += lists_traversal
lists_traversal: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += ordering_test
ordering_test: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += storage
storage: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += test_synchronization
test_synchronization: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += time_lists
time_lists: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += time_queues
time_queues: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += unmanaged_storage
unmanaged_storage: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += user_map
user_map: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += user_set
user_set: force
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

DEMOS += word_count
word_count: bcwords.ada
	gnatchop -r -w bcwords.ada
	$(GNATMAKE) $(GNATMAKE_FLAGS) $@

demos: $(DEMOS)

.PHONY: force

# Emacs variable settings
# Local Variables:
# mode : makefile
# End:
