Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
451d0771
Commit
451d0771
authored
Sep 26, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cygwin target added
parent
30d15733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
Makefile
Makefile
+12
-2
No files found.
Makefile
View file @
451d0771
...
...
@@ -4,7 +4,7 @@
PROG
=
mongoose
all
:
@
echo
"make (linux|bsd|solaris|mac|windows|mingw)"
@
echo
"make (linux|bsd|solaris|mac|windows|mingw
|cygwin
)"
# Possible COPT values: (in brackets are rough numbers for 'gcc -O2' on i386)
# -DHAVE_MD5 - use system md5 library (-2kb)
...
...
@@ -144,6 +144,16 @@ mingw:
$(CC)
$(MINGWOPT)
-Iwin32
mongoose.c main.c win32
\r
es.o
-lws2_32
-ladvapi32
\
-o
$(PROG)
.exe
# Build for Windows under Cygwin
#CYGWINDBG= -DDEBUG -O0 -ggdb
CYGWINDBG
=
-DNDEBUG
-Os
CYGWINOPT
=
-W
-Wall
-mthreads
-Wl
,--subsystem,console
$(CYGWINDBG)
-DHAVE_STDINT
$(GCC_WARNINGS)
$(COPT)
cygwin
:
windres ./win32/res.rc ./win32/res.o
$(CC)
$(CYGWINOPT)
mongoose.c
-lws2_32
\
-shared
-Wl
,--out-implib
=
$(PROG)
.lib
-o
$(PROG)
.dll
$(CC)
$(CYGWINOPT)
-Iwin32
mongoose.c main.c ./win32/res.o
-lws2_32
\
-ladvapi32
-o
$(PROG)
.exe
##########################################################################
### Manuals, cleanup, test, release
...
...
@@ -163,4 +173,4 @@ release: clean
F
=
mongoose-
`
perl
-lne
'/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1'
mongoose.c
`
.tgz
;
cd
..
&&
tar
-czf
x mongoose/
{
LICENSE,Makefile,bindings,examples,test,win32,mongoose.c,mongoose.h,mongoose.1,main.c
}
&&
mv
x mongoose/
$$
F
clean
:
rm
-rf
*
.o
*
.core
$(PROG)
*
.obj
*
.so
$(PROG)
.txt
*
.dSYM
*
.tgz
$(PROG)
.exe
*
.dll
*
.lib
\ No newline at end of file
rm
-rf
*
.o
*
.core
$(PROG)
*
.obj
*
.so
$(PROG)
.txt
*
.dSYM
*
.tgz
$(PROG)
.exe
*
.dll
*
.lib win32/res.o
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