
PROG	= renderer
TOP = /usr/include/GL
CFLAGS	= -w -s -O2 -ansi -DSHM
LIBS	= -lglut -lGLU -lGL -lGLEW  
INCLS   = -I/usr/X11R/include  
LIBDIR  = -L/usr/X11/lib -L/usr/X11R6/lib


#-L$(SHADER_DIR)/lib
#source codes
SRCS = $(PROG).cpp Morph.cpp 
#substitute .cpp by .o to obtain object filenames
OBJ1 = $(SRCS:.cpp=.o)
OBJS = $(OBJ1)  Shader.o

#$< evaluates to the target's dependencies, 
#$@ evaluates to the target

$(PROG): $(OBJS)
	g++ -o $@ $(OBJS)  $(LIBDIR) $(LIBS) $(XLIBS)

$(OBJS): 
	g++ -c  $*.cpp $(INCLS) 

clean:
	rm $(OBJS) $(PROG)

