Skip to content

Instantly share code, notes, and snippets.

@bananu7
Created March 10, 2013 19:52
Show Gist options
  • Save bananu7/5130147 to your computer and use it in GitHub Desktop.
Save bananu7/5130147 to your computer and use it in GitHub Desktop.
CXX := g++
CXXFLAGS := -g -std=c++11 -fPIC -Wall
CXXFLAGS += -I include/
CXXFLAGS += -I ../dependencies/glm-0.9.4.1
CXXFLAGS += -I ../dependencies/
CXXFLAGS += -DGLEW_STATIC -DGLEW_NO_GLU
OBJDIR := build
#deps
LDFLAGS += -lGLEW
LDFLAGS := -lGL
CPP_FILES := $(wildcard src/*.cpp)
CPP_FILES += $(wildcard ../dependencies/SFML-2.0/src/*.cpp)
OBJ_FILES := $(patsubst %.cpp, %.o, $(CPP_FILES))
lib_Engine.a : $(OBJ_FILES)
#$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
ar r $@ $^
$(OBJDIR)/%.o : src/%.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
clean:
rm src/*.o
.PHONY: clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment