Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
e6b87c56
Commit
e6b87c56
authored
Apr 11, 2020
by
jselbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Profile guided optimization build option
parent
ce436fb4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
7 deletions
+24
-7
Makefile
Makefile
+6
-0
client/Makefile
client/Makefile
+2
-1
common.inc
common.inc
+14
-2
server/Makefile
server/Makefile
+1
-1
testcode/Makefile
testcode/Makefile
+1
-3
No files found.
Makefile
View file @
e6b87c56
...
...
@@ -23,6 +23,12 @@ debug: all
profile
:
T := profile
profile
:
all
pgo1
:
T := pgo1
pgo1
:
all
pgo2
:
T := pgo2
pgo2
:
all
clean
:
T := clean
clean
:
everything
rm
-f
stunserver stunclient stuntestcode
...
...
client/Makefile
View file @
e6b87c56
...
...
@@ -15,6 +15,7 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(PGO_LINK_FLAGS)
common.inc
View file @
e6b87c56
...
...
@@ -8,11 +8,13 @@ DEFINES := -DNDEBUG
STANDARD_FLAGS
:=
-
Wall
-
Wuninitialized
RELEASE_FLAGS
:=
-
O
2
RELEASE_FLAGS
:=
-
O
3
DEBUG_FLAGS
:=
-
g
PROFILE_FLAGS
:=
-
O
2
-
g
PROFILE_FLAGS
:=
-
O
3
-
g
FLAVOR_FLAGS
=
$
(
RELEASE_FLAGS
)
CRYPTO_LIBS
:=
-
lcrypto
PGO1_FLAGS
:=
-
fprofile
-
generate
-
fprofile
-
dir
=/
home
/
jselbie
/
profile
PGO2_FLAGS
:=
-
fprofile
-
use
-
fprofile
-
dir
=/
home
/
jselbie
/
profile
#SOLARIS HACK
...
...
@@ -54,3 +56,13 @@ profile: FLAVOR_FLAGS = $(PROFILE_FLAGS)
profile
:
all
pgo1
:
FLAVOR_FLAGS
=
$
(
PGO1_FLAGS
)
$
(
RELEASE_FLAGS
)
pgo1
:
PGO_LINK_FLAGS
=
$
(
PGO1_FLAGS
)
pgo1
:
all
pgo2
:
FLAVOR_FLAGS
=
$
(
PGO2_FLAGS
)
$
(
RELEASE_FLAGS
)
pgo2
:
PGO_LINK_FLAGS
=
$
(
PGO2_FLAGS
)
pgo2
:
all
server/Makefile
View file @
e6b87c56
...
...
@@ -14,6 +14,6 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(PGO_LINK_FLAGS)
testcode/Makefile
View file @
e6b87c56
...
...
@@ -14,7 +14,5 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(PGO_LINK_FLAGS)
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