Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
df848973
Commit
df848973
authored
3 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
Fix unamalgamated target
parent
f37e5ecc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/test.yml
+2
-0
2 additions, 0 deletions
.github/workflows/test.yml
Makefile
+3
-3
3 additions, 3 deletions
Makefile
src/version.h
+0
-8
0 additions, 8 deletions
src/version.h
with
5 additions
and
11 deletions
.github/workflows/test.yml
+
2
−
0
View file @
df848973
...
@@ -11,6 +11,8 @@ jobs:
...
@@ -11,6 +11,8 @@ jobs:
run
:
make test test++ IPV6=0
run
:
make test test++ IPV6=0
-
name
:
openssl
-
name
:
openssl
run
:
make test SSL=OPENSSL IPV6=0
run
:
make test SSL=OPENSSL IPV6=0
-
name
:
unamalgamated
run
:
make unamalgamated
examples
:
examples
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
3
−
3
View file @
df848973
...
@@ -46,8 +46,8 @@ test++: WARN += -Wno-shadow -Wno-missing-field-initializers -Wno-deprecated
...
@@ -46,8 +46,8 @@ test++: WARN += -Wno-shadow -Wno-missing-field-initializers -Wno-deprecated
test++
:
test
test++
:
test
# Make sure we can build from an unamalgamated sources
# Make sure we can build from an unamalgamated sources
unamalgamated
:
$(HDRS) Makefile
unamalgamated
:
$(HDRS) Makefile
test/packed_fs.c
$(
CC
)
src/
*
.c
test
/unit_test.c
$(
CFLAGS
)
$(
LDFLAGS
)
-g
-o
unit_test
$(
CC
)
src/
*
.c
test
/packed_fs.c
test
/unit_test.c
$(
CFLAGS
)
$(
LDFLAGS
)
-g
-o
unit_test
unpacked
:
unpacked
:
$(
CC
)
-I
.
mongoose.c
test
/unit_test.c
-o
unit_test
$(
CC
)
-I
.
mongoose.c
test
/unit_test.c
-o
unit_test
...
@@ -125,7 +125,7 @@ mongoose.c: Makefile $(wildcard src/*)
...
@@ -125,7 +125,7 @@ mongoose.c: Makefile $(wildcard src/*)
(
cat
src/license.h
;
echo
;
echo
'#include "mongoose.h"'
;
(
for
F
in
src/private.h src/
*
.c
;
do
echo
;
echo
'#ifdef MG_ENABLE_LINES'
;
echo
"#line 1
\"
$$
F
\"
"
;
echo
'#endif'
;
cat
$$
F |
sed
-e
's,#include ".*,,'
;
done
))>
$@
(
cat
src/license.h
;
echo
;
echo
'#include "mongoose.h"'
;
(
for
F
in
src/private.h src/
*
.c
;
do
echo
;
echo
'#ifdef MG_ENABLE_LINES'
;
echo
"#line 1
\"
$$
F
\"
"
;
echo
'#endif'
;
cat
$$
F |
sed
-e
's,#include ".*,,'
;
done
))>
$@
mongoose.h
:
$(HDRS) Makefile
mongoose.h
:
$(HDRS) Makefile
(
cat
src/license.h
src/version.h
;
cat
src/config.h src/arch.h src/arch_
*
.h src/str.h src/log.h src/timer.h src/util.h src/fs.h src/url.h src/iobuf.h src/base64.h src/md5.h src/sha1.h src/event.h src/net.h src/http.h src/ssi.h src/tls.h src/ws.h src/sntp.h src/mqtt.h src/dns.h |
sed
-e
's,#include ".*,,'
-e
's,^#pragma once,,'
;
echo
;
echo
'#ifdef __cplusplus'
;
echo
'}'
;
echo
'#endif'
;
echo
'#endif // MONGOOSE_H'
)>
$@
(
cat
src/license.h
;
echo
;
echo
'#ifndef MONGOOSE_H'
;
echo
'#define MONGOOSE_H'
;
echo
;
cat
src/version.h
;
echo
;
echo
'#ifdef __cplusplus'
;
echo
'extern "C" {'
;
echo
'#endif'
;
cat
src/config.h src/arch.h src/arch_
*
.h src/str.h src/log.h src/timer.h src/util.h src/fs.h src/url.h src/iobuf.h src/base64.h src/md5.h src/sha1.h src/event.h src/net.h src/http.h src/ssi.h src/tls.h src/ws.h src/sntp.h src/mqtt.h src/dns.h |
sed
-e
's,#include ".*,,'
-e
's,^#pragma once,,'
;
echo
;
echo
'#ifdef __cplusplus'
;
echo
'}'
;
echo
'#endif'
;
echo
'#endif // MONGOOSE_H'
)>
$@
clean
:
clean
:
rm
-rf
$(
PROG
)
*
.o
*
.dSYM unit_test
*
ut fuzzer
*
.gcov
*
.gcno
*
.gcda
*
.obj
*
.exe
*
.ilk
*
.pdb slow-unit
*
_CL_
*
infer-out data.txt crash-
*
test
/packed_fs.c pack
rm
-rf
$(
PROG
)
*
.o
*
.dSYM unit_test
*
ut fuzzer
*
.gcov
*
.gcno
*
.gcda
*
.obj
*
.exe
*
.ilk
*
.pdb slow-unit
*
_CL_
*
infer-out data.txt crash-
*
test
/packed_fs.c pack
...
...
This diff is collapsed.
Click to expand it.
src/version.h
+
0
−
8
View file @
df848973
#ifndef MONGOOSE_H
#define MONGOOSE_H
#define MG_VERSION "7.4"
#define MG_VERSION "7.4"
#ifdef __cplusplus
extern
"C"
{
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment