CC=qcc -Vgcc_ntox86 
CFLAGS=-w9 -I. -O2

all: gears tunnel fire ray

gears: gears.o tk.o
	qcc -Vgcc_ntox86 -Wl,-rpath /usr/lib gears.o tk.o -o gears -L/usr/lib -lGL -lGLU -lm -lph -lphrender
	chown root gears
	chmod u+s gears

tunnel: tunnel.o image.o sources.o tk.o
	qcc -Vgcc_ntox86 -Wl,-rpath /usr/lib tk.o sources.o image.o tunnel.o -o tunnel -L/usr/lib -lGL -lGLU -lm -lph -lphrender
	chown root tunnel
	chmod u+s tunnel

fire: fire.o tk.o image.o
	qcc -Vgcc_ntox86 -Wl,-rpath /usr/lib fire.o tk.o image.o -o fire -L/usr/lib -lGL -lGLU -lm -lph -lphrender
	chown root fire
	chmod u+s fire

ray: ray.o tk.o 
	qcc -Vgcc_ntox86 -Wl,-rpath /usr/lib ray.o tk.o -o ray -L/usr/lib -lGL -lGLU -lm -lph -lphrender
	chown root ray
	chmod u+s ray

