CFLAGS = -O2 -m486 -funroll-loops -finline-functions -fomit-frame-pointer -ffast-math -Iio/mikmod/include -Iio/ -Ieffects/ -I./ 

#CPPFLAGS = -DLMMDEBUG
CPPFLAGS += -DSVGA
#CPPFLAGS += -DMODEX
#CPPFLAGS += -DTHIRTEENH
#CPPFLAGS += -DNOVGA
	   

LDFLAGS = -lm -lvga -s 

blur_tga:	blur_tga.o 			\
		effects/blur.o	 		\
		effects/blur-opt.o 		\
		effects/spiral.o		\
		effects/bumpmap.o		\
		effects/scale.o			\
		effects/pixelize.o		\
		effects/distort.o		\
		effects/wave.o			\
		effects/fastmath.o		\
		effects/fade.o			\
		effects/water.o			\
		effects/rotate.o		\
		io/modex.o			\
		io/svga.o			\
		io/gfx.o			\
		io/sprite.o			\
		io/image.o			\
		io/targa.o			

blur_img:	blur_img.o 			\
		effects/blur.o	 		\
		effects/blur-opt.o 		\
		effects/spiral.o		\
		effects/bumpmap.o		\
		effects/scale.o			\
		effects/pixelize.o		\
		effects/distort.o		\
		effects/wave.o			\
		effects/fastmath.o		\
		effects/fade.o			\
		effects/water.o			\
		effects/rotate.o		\
		io/modex.o			\
		io/svga.o			\
		io/gfx.o			\
		io/sprite.o			\
		io/image.o			\
		io/targa.o			

tga2img:	tga2img.o	\
		io/image.o	\
		io/targa.o

tga2pal:	tga2pal.o	\
		io/image.o	\
		io/targa.o

clean : 
	rm -f core *.o ./*/*.o ./*/*/*.o ./*/*/*/*.o blur_tga blur_img tga2img tga2pal
