# The Samples "Makefile"
# This work was done at INRIA by O. Arsac

# where did you install the whole libAGAT.a ?
INSTDIR= ../

LAGATALL= $(INSTDIR) 

INCLUDE= -I. -I$(LAGATALL)  
LIBINC=  -L$(LAGATALL)
LIB=     -lAGAT

CFLAGS = -g $(INCLUDE)
# CFLAGS = -O $(INCLUDE)
CC=gcc

LDFLAGS= $(LIBINC) $(LIB)


########

all: tag aleat tplot

bubsort bu: bubsort.c
	$(CC) $(CFLAGS) -o bubsort bubsort.c $(LDFLAGS)

shellsort sh: shellsort.c
	$(CC) $(CFLAGS) -o shellsort shellsort.c $(LDFLAGS)

tag:	tag.o 
	$(CC) $(CFLAGS) -o tag tag.o $(LDFLAGS)

tplot: tplot.o
	$(CC) $(CFLAGS) -o tplot tplot.o $(LDFLAGS)

aleat:	
	gcc -g -I. -I../ aleat.c -o aleat -L../Util -L../Lib -lAGAT -lutil



spotless sl:
	rm -f $(OBJECTS) 
	rm -f core *~ *.o *# *.BAK 

c clean:
	rm -f $(OBJECTS) 
	rm -f core *~ *.o *# *.BAK 
	rm -f tag tplot aleat bubsort
