#
# Makefile for the IRENDER scan converter.
#

include ../makeflag.unx

#
# This might be defined in the URT's rle_config.h.
# If so, you may comment it out.
#
MORE_FLAGS = -DUSE_PROTOTYPES -DUSE_STDLIB_H # For the rle include.

OBJS	= main.o config.o parser.o map.o polyline.o \
	  lights.o rle.o ppm.o image.o bucket.o shader.o \
	  alias.o color.o interpol.o texture.o shadow.o 

all:	irender


irender:	$(OBJS)
	$(CC) $(CFLAGS) $(MORE_FLAGS) -o irender $(OBJS) $(LIBS) -lm $(MORELIBS)

install: irender
	mv -f irender $(BIN_DIR)
	cp irender.cfg $(BIN_DIR)


# DO NOT DELETE THIS LINE -- make depend depends on it.
