diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-12-24 22:12:21 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:50 +0100 |
commit | c129094a1604f96b4a3a0ca58226e38a2a1b7cdb (patch) | |
tree | 20d5e87ed1ff64507a03f84426be4d8229f77f45 /Makefile | |
parent | 9cb390dc3be41600ebace6969f9cd36cd2dcc021 (diff) | |
download | usdx-c129094a1604f96b4a3a0ca58226e38a2a1b7cdb.tar.gz usdx-c129094a1604f96b4a3a0ca58226e38a2a1b7cdb.tar.xz usdx-c129094a1604f96b4a3a0ca58226e38a2a1b7cdb.zip |
Makefile.inc: modularized flags, removed include dirs
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) |