Code: Select all
CC = g++
objects = sdlOpenGL.o Input.o
#Order here matters, SDLmain must be before SDL
#Also, remove mingw32 if not on windows
SDL = -lmingw32 -lSDLmain -lSDL -lopengl32 -lglu32
sdlOpenGL.exe : $(objects)
$(CC) -o sdlOpenGL.exe $(objects) $(SDL)
sdlOpenGL.o : sdlOpenGL.cpp Input.h
clean :
del sdlOpenGL.exe $(objects) stdout.txt stderr.txt
Also, in the /src, there's 3 header files and a bunch of folders. Do I add the whole /src file to my compilers "include" directory, or just the three header files?
Thanks All!
