TARGET	= textures.o

CPP	=	g++
CXX	=	g++
CC	=	gcc
LD	=	ld
MOC	=	moc
MSGFMT	= 	msgfmt
CP	=	cp -u

CXXFLAGS	= $(CPPFLAGS)

#INCL	= -I/usr/include/glib -I../../include 
INCL	= -I../../include 

CPPINCL = $(INCL)
CXXINCL = $(CPPINCL)

OBJS	=	texture.o\
		density.o\
		turbulence.o\
		transformations.o\
		texturemap.o\
		colormap.o\
		colorentry.o\
		pigmententry.o\
		pigmentmap.o\
		pigmentlist.o\
		color.o\
		colorlist.o\
		imagemap.o\
		pigment.o\
		normal.o\
		slopemap.o\
		slopeentry.o\
		normalmap.o\
		normallist.o\
		normalentry.o\
		bumpmap.o\
		interior.o\
		finish.o\
		mapmodifier.o\
		bitmapmodifier.o\
		texturebase.o\
		texturelibrary.o\
		texturebook.o\
		patternmodifier.o


.SUFFIXES:	.cpp

.cpp.o:
	$(CPP) $(CPPFLAGS) -c $(CPPINCL) $<

.cc.o:
	$(CPP) $(CPPFLAGS) -c $(CPPINCL) $<

%.cpp:	%.h

all:		debug
	
release:	$(TARGET)

debug:		$(TARGET)


new:	clean all


$(TARGET):	$(OBJS)
		$(LD) -r -o $(TARGET) $(OBJS)
		$(CP) $(TARGET) ../$(TARGET)

clean:
		rm -f $(OBJS) $(TARGET) *~ 


