.PHONY: libstatic libdynamic

ObjetsLib=PpmMaker1.o PpmMaker2.o
Objets=main.o ${ObjetsLib} 

main : ${Objets}
	gcc -o $@ ${Objets}

%.o : %.c 
	gcc -c $^


libstatic : libPpmMaker.a

libPpmMaker.a : ${ObjetsLib}
	ar -rv $@ $^ 


libdynamic : libPpmMaker.so

libPpmMaker.so : ${ObjetsLib}
	gcc -o $@ -shared $^


main-static : libPpmMaker.a main.o
	gcc -o $@ main.o -static -L. -lPpmMaker

main-dynamic : libPpmMaker.so main.o
	gcc -o $@ main.o -L. -lPpmMaker