Created
March 10, 2013 19:52
-
-
Save bananu7/5130147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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