Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Libraries
nghttp2
Commits
aaebeced
Commit
aaebeced
authored
Mar 14, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #538 from Jan-E/master
Fixes and improvements for Makefile.MSVC
parents
3de435d7
e8b62c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
lib/Makefile.msvc
lib/Makefile.msvc
+10
-9
No files found.
lib/Makefile.msvc
View file @
aaebeced
...
...
@@ -12,16 +12,16 @@
#
THIS_MAKEFILE
:=
$(
lastword
$(MAKEFILE_LIST)
)
USE_CYTHON
:=
1
#USE_CYTHON :=
0
USE_CYTHON
:=
0
#USE_CYTHON :=
1
_VERSION
:=
$(
shell
grep
AC_INIT ../configure.ac |
cut
-d
'['
-f3
|
sed
-r
-e
's/(-DEV
)
?
], //g'
)
_VERSION
:=
$(
shell
grep
AC_INIT ../configure.ac |
cut
-d
'['
-f3
|
sed
-e
's/-DEV//g'
-e
's/
], //g'
)
_VERSION
:=
$(
subst
., ,
$(_VERSION)
)
VER_MAJOR
:=
$(
word
1,
$(_VERSION)
)
VER_MINOR
:=
$(
word
2,
$(_VERSION)
)
VER_MICRO
:=
$(
word
3,
$(_VERSION)
)
VERSION
:=
$(VER_MAJOR)
.
$(VER_MINOR)
.
$(VER_MICRO)
VERSION_NUM
:=
(
$(VER_MAJOR)
<<
16
) + (
$(VER_MINOR)
<< 8) +
$(VER_MICRO
)
VERSION_NUM
:=
(
(
$(VER_MAJOR)
<<
16
) + (
$(VER_MINOR)
<< 8) +
$(VER_MICRO)
)
GENERATED
:=
'Generated by
$(
realpath
Makefile.MSVC
)
'
...
...
@@ -90,7 +90,8 @@ NGHTTP2_SRC := nghttp2_pq.c \
nghttp2_option.c
\
nghttp2_callbacks.c
\
nghttp2_mem.c
\
nghttp2_http.c
nghttp2_http.c
\
nghttp2_rcbuf.c
NGHTTP2_OBJ_R
:=
$(
addprefix
$(OBJ_DIR)
/r_,
$(
notdir
$(NGHTTP2_SRC:.c=.obj)
))
NGHTTP2_OBJ_D
:=
$(
addprefix
$(OBJ_DIR)
/d_,
$(
notdir
$(NGHTTP2_SRC:.c=.obj)
))
...
...
@@ -101,7 +102,7 @@ NGHTTP2_OBJ_D := $(addprefix $(OBJ_DIR)/d_, $(notdir $(NGHTTP2_SRC:.c=.obj)))
clean_nghttp2_pyd_0 clean_nghttp2_pyd_1
all
:
intro $(OBJ_DIR) $(TARGETS) build_nghttp2_pyd_$(USE_CYTHON)
all
:
intro
includes/nghttp2/nghttp2ver.h
$(OBJ_DIR) $(TARGETS) build_nghttp2_pyd_$(USE_CYTHON)
@
echo
'Welcome to NgHTTP2 (release + debug).'
@
echo
'Do a "make -f Makefile.MSVC install" at own risk!'
...
...
@@ -193,17 +194,17 @@ $(OBJ_DIR)/d_%.obj: %.c $(THIS_MAKEFILE)
@
echo
$(OBJ_DIR)/r_nghttp2.res
:
$(OBJ_DIR)/nghttp2.rc $(THIS_MAKEFILE)
$(RC)
-
nologo
-
D_RELEASE
-Fo
$@
$<
$(RC)
-D_RELEASE
-Fo
$@
$<
@
echo
$(OBJ_DIR)/d_nghttp2.res
:
$(OBJ_DIR)/nghttp2.rc $(THIS_MAKEFILE)
$(RC)
-
nologo
-
D_DEBUG
-Fo
$@
$<
$(RC)
-D_DEBUG
-Fo
$@
$<
@
echo
includes/nghttp2/nghttp2ver.h
:
includes/nghttp2/nghttp2ver.h.in $(THIS_MAKEFILE)
sed
< includes/nghttp2/nghttp2ver.h.in
\
-
e
's/@PACKAGE_VERSION@/
$(VERSION)
/g'
\
-
e
's/@PACKAGE_VERSION_NUM@/
(
$(VERSION_NUM)
)/g'
>
$@
-
e
's/@PACKAGE_VERSION_NUM@/
$(VERSION_NUM
)
/g'
>
$@
touch
--reference
=
includes/nghttp2/nghttp2ver.h.in
$@
...
...
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