Skip to content

Instantly share code, notes, and snippets.

@orymate
Created March 27, 2011 10:28
Show Gist options
  • Save orymate/889108 to your computer and use it in GitHub Desktop.
Save orymate/889108 to your computer and use it in GitHub Desktop.
glut makefile
nev=elso_hazi
LDFLAGS += -lglut -lGLU -lGL
#LDFLAGS += -m32 # 32 bites bináris
#CXXFLAGS += -m32 # 32 bites bináris
CXXFLAGS += -pedantic -Wall -Wextra
#CXXFLAGS += -DDEBUG -g # debug opciók
CXXFLAGS += -g0 -O3 # release opciók
OBJS = $(nev).o # linkelendők
$(nev): $(OBJS)
$(CXX) $(LDFLAGS) $(OBJS) -o $@
clean:
$(RM) *.o $(nev)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment