diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile.inc | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc index 733d3b2f..bc56d6d9 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1,8 +1,29 @@ +# -*- mode: makefile -*- + headers+=$(wildcard $(TOP)/src/*/*.hpp) $(wildcard $(TOP)/src/*/*/*.hpp) sources+=$(wildcard $(TOP)/src/*/*.cpp) $(wildcard $(TOP)/src/*/*/*.cpp) deps:=$(sources:.cpp=.d) objects:=$(sources:.cpp=.o) -CXXFLAGS:=-Wall -Werror -I$(TOP)/src -I$(TOP)/src/base -I$(TOP)/src/menu -I$(TOP)/src/media -I$(TOP)/src/screens -I$(TOP)/src/frames -I$(TOP)/src/utils $(shell pkg-config ftgl --cflags) -g -LDFLAGS:=-lsqlite3 -lSDL $(shell log4cpp-config --libs) -lboost_program_options-mt -lboost_filesystem-mt -lboost_thread-mt -lSDL_image -lSDL_gfx -lGL $(shell pkg-config ftgl --libs) +# APPS +PKG_CONFIG:=pkg-config +LOG4CPP_CONFIG:=log4cpp-config + +# CFLAGS +PEDENTIC:=-Wall -Werror +DEBUG:=-g +INC_PATH:=-I$(TOP)/src +FTGL_CFLAGS:=$(shell $(PKG_CONFIG) ftgl --cflags) + +# LDFLAGS +SQLITE_LDFLAGS:=-lsqlite3 +LOG4CPP_LDFLAGS:=$(shell $(LOG4CPP_CONFIG) --libs) +BOOST_LDFLAGS:=-lboost_program_options-mt -lboost_filesystem-mt -lboost_thread-mt +SDL_LDFLAGS:=-lSDL -lSDL_image -lSDL_gfx +GL_LDFLAGS:=-lGL +FTGL_LDFLAGS:=$(shell $(PKG_CONFIG) ftgl --libs) + + +CXXFLAGS:=$(PEDENTIC) $(INC_PATH) $(DEBUG) $(FTGL_CFLAGS) +LDFLAGS:=$(SQLITE_LDFLAGS) $(LOG4CPP_LDFLAGS) $(BOOST_LDFLAGS) $(SDL_LDFLAGS) $(GL_LDFLAGS) $(FTGL_LDFLAGS) |