# By default, compile all of the demo programs:

EXAMPLES=listener multi stream_listener stream_sender tcpreplay value

all:	$(EXAMPLES)

$(EXAMPLES):	FORCE
	gnatmake -Pexamples 


# "FORCE" just forces the depending rule to always be run.
# In particular, we always want to invoke gnatmake, which then checks to see if
# anything needs recompiling.

FORCE:


clean:
	rm -f $(EXAMPLES) *.o *.ali


# An alternative is to use commands of the form
#    gnatmake `adasockets-config --cflags` $example -largs `adasockets-config --libs`