Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (23 sloc) 1.05 KB
#Makefile for Lab2
OPEN_INVENTOR_DIRECTORY = /usr/include/Inventor
OPEN_INVENTOR_INCLUDE = -I$(OPEN_INVENTOR_DIRECTORY)/lib/database/include -I$(OPEN_INVENTOR_DIRECTORY)/lib/nodekits/include
OPEN_INVENTOR_LIBRARIES = -L$(OPEN_INVENTOR_DIRECTORY)/lib -L$(OPEN_INVENTOR_DIRECTORY)/libFL/src -L$(OPEN_INVENTOR_DIRECTORY)/libimage
OPENGL_DIRECTORY = /usr/include/GL
OPENGL_LIBRARIES = /usr/include/GL
OPENGL_INCLUDE = /usr/lib
CPP = g++ $(OPEN_INVENTOR_DIRECTORY) $(OPENGL_DIRECTORY) /usr/local/lib
INCLUDES = -I/usr/include $(OPEN_INVENTOR_INCLUDE) $(OPENGL_INCLUDE)
# Uncomment to turn on debugging:
CPPFLAGS = -g -DDEBUG
LIBRARIES = $(OPEN_INVENTOR_LIBRARIES) $(OPENGL_LIBRARIES) -lInventor -lX11 -lXt -ljpeg -lGL -lGLU -lFL -limage -ldl -lm
OBJECT_FILES = lab1.o OSUInventor.o sphere.o trace.o rgb.o camera.o line.o object.o light.o
EXEC = lab2
all: objects lab2
.PHONY: all
objects:
$(CPP) *.cpp -c $(CPPFLAGS) $(INCLUDES) $<
lab2: $(OBJECT_FILES)
$(CPP) -o $(EXEC) $(CPPFLAGS) $(OBJECT_FILES) \
$(LDFLAGS) $(LIBRARIES)
clean:
rm *.o $(EXEC)
Something went wrong with that request. Please try again.