Skip to content

Instantly share code, notes, and snippets.

@pedro-stanaka
Created June 18, 2013 12:36
Show Gist options
  • Save pedro-stanaka/5805004 to your computer and use it in GitHub Desktop.
Save pedro-stanaka/5805004 to your computer and use it in GitHub Desktop.
Makefile for OpenGL programming in UNIX systems using the library freeglut3.
CPP = g++
CC = gcc
OBJ = main.o $(RES)
BIN = appname
RM = rm -f
PROGRAM = appname
$(PROGRAM):
$(CPP) -w *.cpp -lX11 -lGL -lGLU -lglut -g -Wall -O2 -o $(PROGRAM)
build:
$(CPP) -w *.cpp -lglut -lGLU -lGL -o $(PROGRAM)
clean:
rm -f *.o
rm -f *.exe
rm -f *.dev
rm -f *.win
rm -f *.dll
rm -f *.DLL
rm -f *.lib
rm -f *.LIB
rm -f $(PROGRAMA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment