Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xs-test
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patrick Chen
xs-test
Commits
bba0f3ca
Commit
bba0f3ca
authored
Aug 27, 2018
by
Patrick Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename example
parent
1cd1ef2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
Makefile
Makefile
+7
-10
greeting.cc
example/greeting.cc
+0
-0
greeting.json
example/greeting.json
+0
-0
No files found.
Makefile
View file @
bba0f3ca
...
@@ -29,8 +29,8 @@ XSTEST_HDRS=$(INCLUDE_DIR)/test/Config.h $(INCLUDE_DIR)/test/Service.h $(INCLUDE
...
@@ -29,8 +29,8 @@ XSTEST_HDRS=$(INCLUDE_DIR)/test/Config.h $(INCLUDE_DIR)/test/Service.h $(INCLUDE
XSTEST_SRCS
=
$(SRC_DIR)
/xs-test.cc
$(SRC_DIR)
/test/Config.cc
$(SRC_DIR)
/test/Service.cc
$(SRC_DIR)
/test/Tester.cc
$(SRC_DIR)
/test/Expectation.cc
XSTEST_SRCS
=
$(SRC_DIR)
/xs-test.cc
$(SRC_DIR)
/test/Config.cc
$(SRC_DIR)
/test/Service.cc
$(SRC_DIR)
/test/Tester.cc
$(SRC_DIR)
/test/Expectation.cc
XSTEST_OBJS
=
$
(
subst
$(REPO_DIR)
,
$(BUILD_DIR)
,
$
(
XSTEST_SRCS:.cc
=
.o
))
XSTEST_OBJS
=
$
(
subst
$(REPO_DIR)
,
$(BUILD_DIR)
,
$
(
XSTEST_SRCS:.cc
=
.o
))
HELLO_WORLD_SRCS
=
$(REPO_DIR)
/example/hello-world
.cc
GREETING_SRCS
=
$(REPO_DIR)
/example/greeting
.cc
HELLO_WORLD_OBJS
=
$
(
subst
$(REPO_DIR)
,
$(BUILD_DIR)
,
$
(
HELLO_WORLD
_SRCS:.cc
=
.o
))
GREETING_OBJS
=
$
(
subst
$(REPO_DIR)
,
$(BUILD_DIR)
,
$
(
GREETING
_SRCS:.cc
=
.o
))
all
:
$(BUILD_DIR)/xs-test
all
:
$(BUILD_DIR)/xs-test
...
@@ -41,16 +41,13 @@ $(BUILD_DIR)/%.o: $(REPO_DIR)/%.cc $(XSTEST_HDRS)
...
@@ -41,16 +41,13 @@ $(BUILD_DIR)/%.o: $(REPO_DIR)/%.cc $(XSTEST_HDRS)
mkdir
-p
$
(
dir
$@
)
mkdir
-p
$
(
dir
$@
)
$(CXX)
-o
$@
-c
$(CXX_FLAGS)
$<
$(CXX)
-o
$@
-c
$(CXX_FLAGS)
$<
example
:
$(BUILD_DIR)/
hello-word
example
:
$(BUILD_DIR)/
greeting
$(BUILD_DIR)/
hello-word
:
$(HELLO_WORLD
_OBJS)
$(BUILD_DIR)/
greeting
:
$(GREETING
_OBJS)
$(CXX)
-o
$@
$(
HELLO_WORLD
_OBJS)
$(LD_FLAGS)
$(CXX)
-o
$@
$(
GREETING
_OBJS)
$(LD_FLAGS)
clean
:
clean
:
rm
-rf
$(BUILD_DIR)
/xs-test
rm
-rf
$(BUILD_DIR)
/xs-test
rm
-rf
$(BUILD_DIR)
/
hello-world
rm
-rf
$(BUILD_DIR)
/
greeting
rm
-rf
$(XSTEST_OBJS)
rm
-rf
$(XSTEST_OBJS)
rm
-rf
$(HELLO_WORLD_OBJS)
rm
-rf
$(GREETING_OBJS)
print-var
:
echo
$(XSTEST_OBJS)
example/
hello-world
.cc
→
example/
greeting
.cc
View file @
bba0f3ca
File moved
example/
hello-world
.json
→
example/
greeting
.json
View file @
bba0f3ca
File moved
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