Building an OpenGL project from Makefile

General questions regarding the usage of CodeLite
mikeglaz
CodeLite Enthusiast
Posts: 13
Joined: Fri Mar 16, 2012 2:21 am
Genuine User: Yes
IDE Question: C++
Contact:

Building an OpenGL project from Makefile

Post by mikeglaz »

I'm learning OpenGL. I know how to make my program in the Terminal using a Makefile. But how would I have CodeLite invoke my Makefile or otherwise where would I need to put certain flags from my Makefile?

Here's my Makefile:

Code: Select all

objects = Asteroid.o Bullet.o main.o Projectile.o Ship.o

asteroids: $(objects)
	g++ -o asteroids $(objects) -lX11 -lXi -lglut -lGL -lGLU -lm
	
Asteroid.o: Asteroid.cpp
	g++ -c Asteroid.cpp

bullet.o: Bullet.cpp
	g++ -c Bullet.cpp

main.o: main.cpp
	g++ -c main.cpp

Projectile.o: Projectile.cpp
	g++ -c Projectile.cpp

ship.o: Ship.cpp
	g++ -c Ship.cpp

clean:
	rm asteroids Asteroid.o Bullet.o main.o Projectile.o Ship.o
mikeglaz
CodeLite Enthusiast
Posts: 13
Joined: Fri Mar 16, 2012 2:21 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building an OpenGL project from Makefile

Post by mikeglaz »

Nevermind, I figured it out :)
Post Reply