# Makefile for the Linux version of EDrive 0.1 - a multiplatform driving # simulator # # Written by Evan Alexander Weaver # Last modified: 2 June 2004 # You will probably need to modify the following three lines, depending # on where the OpenAL libraries, OpenAL #include files and X11 (including # OpenGL/Mesa) libraries, respectively, are located on your system. # OPENALLIBDIR = /usr/local/lib OPENALINCLUDEDIR = /usr/local/include X11LIBDIR = /usr/X11R6/lib edrive: edrive.o graphics.o error.o car.o input.o terrain.o sound.o c++ -o edrive -L$(X11LIBDIR) -L$(OPENALLIBDIR) -lopenal -lglut -lGLU -lGL -lX11 -lXext -lm edrive.o graphics.o error.o car.o terrain.o input.o sound.o edrive.o: edrive.cpp car.h terrain.h graphics.h input.h error.h edmath.h platform.h c++ -c -I$(OPENALINCLUDEDIR) edrive.cpp graphics.o: graphics.cpp graphics.h error.h edmath.h platform.h c++ -c graphics.cpp input.o: input.cpp input.h error.h platform.h c++ -c input.cpp sound.o: sound.cpp sound.h error.h platform.h c++ -c -I$(OPENALINCLUDEDIR) sound.cpp error.o: error.cpp error.h c++ -c error.cpp car.o: car.cpp car.h graphics.h terrain.h error.h edmath.h sound.h platform.h c++ -c -I$(OPENALINCLUDEDIR) car.cpp terrain.o: terrain.cpp terrain.h graphics.h error.h edmath.h platform.h c++ -c terrain.cpp