# ---------------------------- # Makefile for JDraw # # KRS -- 1/27/2009 # # Will work for machines in 335 lab # # For other environment, you must redefine INCDIR, LIBDIR and # possibly environemnt variables that point to shared(dll) libraries # # ---------------------------- CPP = g++ TARGET = jdraw SOURCES = Main.cpp mainWindow.cpp glWidget.cpp INCLUDES = mainWindow.h glWidget.h OBJS = $(SOURCES:.cpp=.o) CPPFLAGS = -g LIBS = -lGL -lGLU -lfltk -lfltk_gl INCDIR = -I/usr/local/include LIBDIR = -L/usr/local/lib all: $(TARGET) $(TARGET): $(OBJS) $(CPP) $(CPPFLAGS) -o $(TARGET) $(OBJS) $(LIBDIR) $(LIBS) Main.o: Main.cpp $(CPP) $(CPPFLAGS) -c Main.cpp $(INCDIR) mainWindow.o: mainWindow.cpp mainWindow.h $(CPP) $(CPPFLAGS) -c mainWindow.cpp $(INCDIR) glWidget.o: glWidget.cpp glWidget.h $(CPP) $(CPPFLAGS) -c glWidget.cpp $(INCDIR) clean: rm -rf $(TARGET) $(OBJS) core dinosaur.o: g++ -c -I/graphics/apps/graphics/glut-3.7/include dinosaur.cc dino: dinosaur.o $(CPP) $(CPPFLAGS) -o dino dinosaur.o $(LIBDIR) $(LIBS)