diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -5,7 +5,7 @@ CXX = g++ ifeq ($(TARGET_OS),linux) LIBS = -lpthread -lGL -lGLEW -lfreetype \ - -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2main -lentityx + -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2main endif ifeq ($(TARGET_OS),win32) LIBS = -lopengl32 -lglew32 -lmingw32 \ @@ -13,8 +13,8 @@ ifeq ($(TARGET_OS),win32) endif CXXFLAGS = -ggdb -m$(TARGET_BITS) -std=c++14 -fext-numeric-literals -CXXINC = -Iinclude -Iinclude/freetype -CXXWARN = -Wall -Wextra -Werror -pedantic +CXXINC = -Iinclude -Iinclude/freetype -I. +CXXWARN = -Wall -Wextra #-Werror -pedantic CXXSRCDIR = src CXXOUTDIR = out @@ -39,6 +39,12 @@ cleandata: touch brice.dat $(EXEC): $(CXXOUTDIR)/$(CXXOBJ) main.cpp + g++ -I. -std=c++11 -c entityx/help/Pool.cc -o out/Pool.o + g++ -I. -std=c++11 -c entityx/help/Timer.cc -o out/Timer.o + g++ -I. -std=c++11 -c entityx/Event.cc -o out/Event.o + g++ -I. -std=c++11 -c entityx/Entity.cc -o out/Entity.o + g++ -I. -std=c++11 -c entityx/System.cc -o out/System.o + @echo " CXX/LD main" @$(CXX) $(CXXFLAGS) $(CXXINC) $(CXXWARN) -o $(EXEC) main.cpp out/*.o $(LIBS) @rm -rf xml/*.dat @@ -47,3 +53,7 @@ $(EXEC): $(CXXOUTDIR)/$(CXXOBJ) main.cpp $(CXXOUTDIR)/%.o: $(CXXSRCDIR)/%.cpp @echo " CXX " $< @$(CXX) $(CXXFLAGS) $(CXXINC) $(CXXWARN) $(LIBS) -c $< -o $@ + +$(CXXOUTDIR)/%.o: $(CXXSRCDIR)/%.cc + @echo " CXX " $< + @$(CXX) $(CXXFLAGS) $(CXXINC) $(CXXWARN) $(LIBS) -c $< -o $@
\ No newline at end of file |