TARGET = texconv

# Which compiler
CC = g++

# libs and includes
LIBS = -lm -lIL -lILU 
INCLUDE = -I .

.SUFFIXES: .c .cpp .s .o

OBJS = main.o interntextureseq.o textureprops.o texturecrunch.o exoquant.o


# Options for development
# CFLAGS = -g -Wall -Werror -fno-common -ffast-math

# Options for release
CFLAGS = -O2 -Wall-Werror -fno-common -ffast-math

$(TARGET): $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

.cpp.o:
	$(CC) -c $< $(CFLAGS) $(INCLUDE) -o $@


clean:
	rm -f $(TARGET)
	rm -f $(OBJS)
	rm -f Makefile.bak
	rm -f .depend
