TARGET	= visible.o 

CPP	=	g++
CXX	=	g++
CC	=	gcc
LD	=	ld
MOC	=	moc
MSGFMT	= 	msgfmt
MAKE	=	make
CP		= cp
RM		= rm -f

CPPFLAGS	= -Wall -g
CXXFLAGS	= $(CPPFLAGS)

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

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

LIBS	= -lm

OBJS=		body.o \
		base.o\
		script.o\
		csg.o\
		blobobj.o\
		blob.o\
		sphere.o\
		cylinder.o\
		box.o\
		torus.o\
		cone.o\
		text.o\
		nonsolid.o\
		disc.o\
		triangle.o\
		plane.o\
		heightfield.o\
		dim.o\
		atom.o\
		csgobj.o\
		obj.o\
		ref.o\
		refptr.o \
		world.o\
		lathe.o \
		mesh.o\
		poly.o\
		cubic.o\
		quartic.o\
		quadric.o\
		prism.o\
		superellipsoid.o\
		lightobj.o\
		lightpoint.o\
		spotlight.o \
		view.o

.SUFFIXES:	.cpp

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

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

%.cpp:	%.h

all:	$(TARGET)

new:	clean all


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

clean:
		$(RM) $(OBJS) $(TARGET) *~ 


