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
c7e5573d
Commit
c7e5573d
authored
Jan 16, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not building DLLs. Using separate target for cocoa mac app.
parent
b9a226d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Makefile
Makefile
+6
-7
No files found.
Makefile
View file @
c7e5573d
...
@@ -36,20 +36,19 @@ LIB = lib$(PROG).so$(MONGOOSE_LIB_SUFFIX)
...
@@ -36,20 +36,19 @@ LIB = lib$(PROG).so$(MONGOOSE_LIB_SUFFIX)
# "-Wl,--as-needed" turned on by default in cc command.
# "-Wl,--as-needed" turned on by default in cc command.
# Also, this is turned in many other distros in static linkage builds.
# Also, this is turned in many other distros in static linkage builds.
linux
:
linux
:
$(CC)
mongoose.c
-shared
-fPIC
-fpic
-o
$(LIB)
-Wl
,-soname,
$(LIB)
-ldl
-pthread
$(CFLAGS)
$(CC)
mongoose.c main.c
-o
$(PROG)
-ldl
-pthread
$(CFLAGS)
$(CC)
mongoose.c main.c
-o
$(PROG)
-ldl
-pthread
$(CFLAGS)
bsd
:
bsd
:
$(CC)
mongoose.c
-shared
-pthread
-fpic
-fPIC
-o
$(LIB)
$(CFLAGS)
$(CC)
mongoose.c main.c
-pthread
-o
$(PROG)
$(CFLAGS)
$(CC)
mongoose.c main.c
-pthread
-o
$(PROG)
$(CFLAGS)
mac
:
mac
:
$(CC)
mongoose.c
-pthread
-o
$(LIB)
-flat_namespace
-bundle
-undefined
suppress
$(CFLAGS)
$(CC)
mongoose.c main.c
-pthread
$(CFLAGS)
-o
$(PROG)
$(CC)
mongoose.c main.c
-DUSE_COCOA
-pthread
$(CFLAGS)
-framework
Cocoa
-ObjC
-arch
i386
-arch
x86_64
-o
$(PROG)
V
=
`
perl
-lne
'/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1'
mongoose.c
`
;
DIR
=
dmg/Mongoose.app
&&
rm
-rf
$$
DIR
&&
mkdir
-p
$$
DIR/Contents/
{
MacOS,Resources
}
&&
install
-m
644 build/mongoose_
*
.png
$$
DIR/Contents/Resources/
&&
install
-m
644 build/Info.plist
$$
DIR/Contents/
&&
install
-m
755
$(PROG)
$$
DIR/Contents/MacOS/
&&
ln
-fs
/Applications dmg/
;
hdiutil create
$(PROG)
_
$$
V.dmg
-volname
"Mongoose
$$
V"
-srcfolder
dmg
-ov
#; rm -rf dmg
cocoa
:
$(CC)
mongoose.c main.c
-DUSE_COCOA
-pthread
$(CFLAGS)
-framework
Cocoa
-ObjC
-arch
i386
-arch
x86_64
-o
Mongoose
V
=
`
perl
-lne
'/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1'
mongoose.c
`
;
DIR
=
dmg/Mongoose.app
&&
rm
-rf
$$
DIR
&&
mkdir
-p
$$
DIR/Contents/
{
MacOS,Resources
}
&&
install
-m
644 build/mongoose_
*
.png
$$
DIR/Contents/Resources/
&&
install
-m
644 build/Info.plist
$$
DIR/Contents/
&&
install
-m
755 Mongoose
$$
DIR/Contents/MacOS/
&&
ln
-fs
/Applications dmg/
;
hdiutil create Mongoose_
$$
V.dmg
-volname
"Mongoose
$$
V"
-srcfolder
dmg
-ov
#; rm -rf dmg
solaris
:
solaris
:
$(CC)
mongoose.c
-pthread
-lnsl
-lsocket
-fpic
-fPIC
-shared
-o
$(LIB)
$(CFLAGS)
$(CC)
mongoose.c main.c
-pthread
-lnsl
-lsocket
-o
$(PROG)
$(CFLAGS)
$(CC)
mongoose.c main.c
-pthread
-lnsl
-lsocket
-o
$(PROG)
$(CFLAGS)
...
@@ -114,7 +113,7 @@ windows: cyassl.lib lua.lib
...
@@ -114,7 +113,7 @@ windows: cyassl.lib lua.lib
$(MSVC)
/bin/rc build
\r
es.rc
$(MSVC)
/bin/rc build
\r
es.rc
$(CL)
/Ibuild main.c mongoose.c /GA
$(LINK)
build
\r
es.res
\
$(CL)
/Ibuild main.c mongoose.c /GA
$(LINK)
build
\r
es.res
\
$(GUILIB)
/out:
$(PROG)
.exe
$(GUILIB)
/out:
$(PROG)
.exe
$(CL)
mongoose.c /GD
$(LINK)
/DLL /DEF:build
\d
ll.def /out:
$(PROG)
.dll
#
$(CL) mongoose.c /GD $(LINK) /DLL /DEF:build\dll.def /out:$(PROG).dll
# Build for Windows under MinGW
# Build for Windows under MinGW
#MINGWDBG= -DDEBUG -O0 -ggdb
#MINGWDBG= -DDEBUG -O0 -ggdb
...
...
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