Compile Project with Bullet via Makefile

mattloto1
Posts: 1
Joined: Wed Jun 01, 2011 1:41 am

Compile Project with Bullet via Makefile

Post by mattloto1 »

Hey! So I'm new to bullet and I have a question. I have bullet working in Visual Studio by importing the bullet project into my project, and I can also compile the .libs, etc. However, I want to be able to compile the project via a makefile. If this is my makefile without bullet:

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
How would I incorporate bullet libs into the makefile?

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! :D