#-----------------------------------------------------------------------------
#                               EXAMPLES  Makefile
#-----------------------------------------------------------------------------
#
# Do not modify this file.  If you want to add a new example, modify the file
# Makefile.dep.
#-----------------------------------------------------------------------------

# the C compiler
CC = gcc

# the Ada Compiler
ADAC = $(CC)

# Gnat1 compilation flags
GF =

# Gnatbind binder flags
BF =

# Extension for ".o" files
o = o

# Extension for executable files
e =


#-----------------------------------------------------------------------------
# Main rule

main_rule : process

include Makefile.dep

process : clean $(LIST_EXEC)


###############################################################################
# General rules
###############################################################################
.SUFFIXES: .adb .ads .ali .o
.PHONY: clean process force

.adb.o:
	$(ADAC) -c $(GF)  $<

.ads.o:
	$(ADAC) -c $(GF)  $<

.c.o:
	$(CC) -c $(CFLAGS) $<

% : %.o
	gnatbl $@.ali -o $@ $($@_DEP)
	./$@


clean : force
	@/bin/rm -f *.$o *.ali bind_*.c *.s $(LIST_EXEC)

force :
