# AWS examples makefile
# Copyright (c) 2004 Ludovic Brenta <ludovic.brenta@insalien.org>

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# 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 GNU
# General Public License for more details.

# You should normally copy the examples directory to a user-writable
# directory before trying to compile.

# This Makefile builds all the Ada Web Server examples, using the
# Debian way of organising files.  In particular, it uses project
# files to do most of the work, instead of specifying dependencies
# explicitly.

.SUFFIXES=

all: obj rdemo.ads hello_demo.ads interoplab.ads
	gnatmake -Pdemos

rdemo.ads: adains.png page3.html
	awsres -q -r rdemo $<

hello_demo.ads: hello.wsdl
	wsdl2aws -q -f -doc $<

interoplab.ads: interoplab_main.wsdl
	wsdl2aws -q -f -doc -noskel $<

obj:
	mkdir -p obj

clean:
	rm -rf obj rdemo.ads hello_demo* interoplab-* interoplab.ads
