# makefile pour demonstration de la bibliotheque TPinformatique

LIBS= -L../src_biblio/TPInfo
CFLAGS= -I../src_biblio


executable_demo= demo_hasard demo_graphisme exemple_graphisme demo_port_parallele demo_animation test_echelles

all : $(executable_demo)



#demonstration sous-bibliothque hasard

demo_hasard : demo_hasard.c
	gcc demo_hasard.c -o demo_hasard ${CFLAGS} ${LIBS} -lm  -ltpinfo -Wall -lm


#demonstration sous-bibliothque graphisme

demo_graphisme : demo_graphisme.c
	gcc demo_graphisme.c -o demo_graphisme ${CFLAGS} ${LIBS} -ltpinfo `allegro-config --cflags --libs`  -Wall -lm

exemple_graphisme : exemple_graphisme.c
	gcc exemple_graphisme.c -o exemple_graphisme ${CFLAGS} ${LIBS} -ltpinfo `allegro-config --cflags --libs`  -Wall -lm



demo_animation : demo_animation.c
	gcc demo_animation.c -o demo_animation ${CFLAGS} ${LIBS} -ltpinfo `allegro-config --cflags --libs`  -Wall -lm


test_echelles : test_echelles.c
	gcc test_echelles.c -o test_echelles ${CFLAGS} ${LIBS} -ltpinfo `allegro-config --cflags --libs`  -Wall -lm

#demonstration sous-bibliothque port_parallele

demo_port_parallele : demo_port_parallele.c
	gcc demo_port_parallele.c  -o demo_port_parallele  ${CFLAGS} ${LIBS} -ltpinfo -Wall 




clean :
	rm -f *.o *~

cleanclean : clean
	rm -f $(executable_demo)

