Skip to content

Commit

Permalink
Major update
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Sep 2, 2015
1 parent 17d723b commit 24ce246
Show file tree
Hide file tree
Showing 24 changed files with 100,910 additions and 3,238 deletions.
21 changes: 12 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
CC=g++

DEBUG=-DNDEBUG
DEBUG=-g

INCLUDES = -Itools/
INCLUDES = -Itools/ -Isrc/



CFLAGS= -Ofast $(DEBUG) -march=native -std=c++0x
CFLAGS= -O3 $(DEBUG) -march=native -std=c++0x -funroll-loops

MAIN =main

SOURCES= src/$(MAIN).cpp src/glib.cpp src/RModelHandler.cpp src/Camera.cpp src/utils.cpp

RINCLUDES1 = Camera.cpp RModelHandler.cpp glib.cpp helper.cpp RWindow.cpp RGL.cpp
RINCLUDES = $(addprefix src/, $(RINCLUDES1))
SOURCES= src/$(MAIN).cpp src/utils.cpp $(RINCLUDES)

OBJECTS = $(SOURCES:.cpp=.o)


EXECUTABLE=bin/spunto
EXECUTABLE=bin/mc

GLIBS= $(LIBRARIES) -lGL -lGLEW -lsfml-graphics -lsfml-window -lsfml-system
#RLIBS = -lCamera -lglib -lRModelHandler -lhelper -lRWindow


all: mkbin mc
all: mc

mkbin:
mkdir -p bin
mc: $(OBJECTS)
$(CC) -o $(EXECUTABLE) $(OBJECTS) $(GLIBS)
$(CC) -o $(EXECUTABLE) $(OBJECTS) $(GLIBS) $(RLIBS)

.cpp.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
Expand Down
Loading

0 comments on commit 24ce246

Please sign in to comment.