Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
12ba6741
Commit
12ba6741
authored
Jan 27, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
9934ea40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
makefile
build/gcc/makefile
+50
-0
No files found.
build/gcc/makefile
0 → 100644
View file @
12ba6741
SRC_DIR
=
../../src
_SOURCES
=
factory.cpp formatters.cpp line_logger.cpp os.cpp
SOURCES
=
$
(
patsubst %,
$(SRC_DIR)
/%,
$(_SOURCES)
)
OBJS_RELEASE
=
$
(
patsubst %.cpp,release/%.o,
$(_SOURCES)
)
OBJS_DEBUG
=
$
(
patsubst %.cpp,debug/%.o,
$(_SOURCES)
)
#$(info OBJS: ${OBJS})
CXX
=
g++
CXXFLAGS
=
-Wall
-std
=
c++11
-pthread
-I
../../include
CXX_RELEASE_FLAGS
=
-O3
-flto
CXX_DEBUG_FLAGS
=
-g
OUTLIB_RELEASE
=
libc11log.a
OUTLIB_DEBUG
=
libc11log-debug.a
.PHONY
:
all mkdirs release debug build clean
all
:
release
release
:
CXXFLAGS += $(CXX_RELEASE_FLAGS)
release
:
mkdirs build-release
debug
:
CXXFLAGS += $(CXX_DEBUG_FLAGS)
debug
:
mkdirs build-debug
mkdirs
:
@
mkdir
-p
release debug
build-release
:
$(OBJS_RELEASE)
ar rvs
$(OUTLIB_RELEASE)
$^
build-debug
:
$(OBJS_DEBUG)
ar rvs
$(OUTLIB_DEBUG)
$^
release/%.o
:
$(SRC_DIR)/%.cpp
$(CXX)
-c
$<
-o
$@
$(CXXFLAGS)
debug/%.o
:
$(SRC_DIR)/%.cpp
$(CXX)
-c
$<
-o
$@
$(CXXFLAGS)
clean
:
rm
-rf
release debug
$(OUTLIB_RELEASE)
$(OUTLIB_DEBUG)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment