# See the Open Render instalation guide for more help.
OBJ=simple_texture.o simple_shader.o simple_light.o

all: $(OBJ) ./pix 

# Use the following rule for your compile if you are on an
# IRIX 4 SGI Machine with an R3000 cpu.
.c.o: 
	cc -c -G 0 -I. -I.. -I$(ALIAS_LOCATION)/include $*.c -o _$*.o
	ld -G 0 -r _$*.o -lm_G0 -o $@
	rm -f _$*.o

# Use the following rule for your compile if you are on an 
# IRIX 4 SGI Machine with an R4000 cpu. Note, the above rule is the
# default, you will have to comment or delete that rule, and uncomment
# this rule.
#.c.o:
#	cc -c -G 0 -mips2 -I. -I.. -I$(ALIAS_LOCATION)/include $*.c -o _$*.o
#	ld -G 0 -r _$*.o -lm_G0 -o $@
#	rm -f _$*.o

# Use the following rule for your compile if you are on an
# IRIX 5 SGI Machine with an R4000 cpu. Note, the first rule above is the
# default, you will have to comment or delete that rule, and uncomment
# this rule. For Alias version 5.0.1, this rule should only be used if
# you are compiling this Open Render module for the PowerCaster or PowerTracer.
#.c.o:
#	cc -c -G 0 -mips2 -I. -I.. -I$(ALIAS_LOCATION)/include $*.c -o _$*.o
#	ld -shared _$*.o -lm_G0 -o $@
#	rm -f _$*.o

# Use the following rule for your compile if you are on an
# IBM Machine. Note, the first rule above is the default, you
# will have to comment or delete that rule, and uncomment
# this rule.
#.c.o:
#	cc -c -I. -I.. -I$(ALIAS_LOCATION)/include $*.c -o _$*.o
#	ld -bI:ocr.import -lc -lm -K _$*.o -bl:load.map 	-bR:rmap -o $@
#	rm -f _$*.o

./pix:
	mkdir ./pix

clean:
	rm -f $(OBJ)

