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
919f5363
Commit
919f5363
authored
Aug 28, 2010
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UNIX flags: -Os -> -O2, and refactored windows build
parent
ef04ce98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
Makefile
Makefile
+13
-13
No files found.
Makefile
View file @
919f5363
...
@@ -20,7 +20,7 @@ all:
...
@@ -20,7 +20,7 @@ all:
### UNIX build: linux, bsd, mac, rtems
### UNIX build: linux, bsd, mac, rtems
##########################################################################
##########################################################################
CFLAGS
=
-W
-Wall
-std
=
c99
-pedantic
-O
s
-fomit-frame-pointer
$(COPT)
CFLAGS
=
-W
-Wall
-std
=
c99
-pedantic
-O
2
-fomit-frame-pointer
$(COPT)
MAC_SHARED
=
-flat_namespace
-bundle
-undefined
suppress
MAC_SHARED
=
-flat_namespace
-bundle
-undefined
suppress
LINFLAGS
=
-ldl
-pthread
$(CFLAGS)
LINFLAGS
=
-ldl
-pthread
$(CFLAGS)
LIB
=
_
$(PROG)
.so
LIB
=
_
$(PROG)
.so
...
@@ -51,20 +51,20 @@ solaris:
...
@@ -51,20 +51,20 @@ solaris:
# Assuming that studio is installed in d:\vc6, change VC variable below to
# Assuming that studio is installed in d:\vc6, change VC variable below to
# the correct path on your system. Run "d:\vc6\bin\nmake windows"
# the correct path on your system. Run "d:\vc6\bin\nmake windows"
VC
=
q:
\v
c6
VC
=
q:
\v
c6
OUT
=
c:
\o
ut
#DBG= /Zi /DDEBUG /Od /DDEBUG
#WINDBG= /Zi /DDEBUG /Od /DDEBUG
DBG
=
/DNDEBUG /Os
WINDBG
=
/DNDEBUG
#/Os
CL
=
$(VC)
\b
in
\c
l.exe /MD /TC /nologo /W4 /c
$(DBG)
/I
$(VC)
/include
CLFLAGS
=
/MD /TC /nologo /W4 /c
$(WINDBG)
/I
$(VC)
/include
LINK
=
$(VC)
\b
in
\l
ink.exe /incremental:no /libpath:
$(VC)
\l
ib ws2_32.lib
LINKFLAGS
=
/incremental:no /libpath:
$(VC)
\l
ib ws2_32.lib
OUT
=
c:
\o
ut
DLL
=
$(OUT)
\_
$(PROG)
.dll
EXE
=
$(OUT)
\$
(
PROG
)
.exe
windows
:
windows
:
$(VC)
\b
in
\c
l main.c
$(CLFLAGS)
/Fo
$(OUT)
\m
ain.obj
$(CL)
main.c /Fd
$(OUT)
\m
ain.pdb /Fo
$(OUT)
\m
ain.obj
$(VC)
\b
in
\c
l mongoose.c
$(CLFLAGS)
/Fo
$(OUT)
\m
ongoose.obj
$(CL)
mongoose.c /Fd
$(OUT)
\m
ongoose.pdb /Fo
$(OUT)
\m
ongoose.obj
$(VC)
\b
in
\l
ink
$(OUT)
\m
ongoose.obj
$(LINKFLAGS)
\
$(LINK)
$(OUT)
\m
ongoose.obj /DLL /DEF:win32
\d
ll.def /out:
$(DLL)
/DLL /DEF:win32
\d
ll.def /out:
$(OUT)
\_
$(PROG)
.dll
$(LINK)
$(OUT)
\m
ain.obj
$(OUT)
\m
ongoose.obj /out:
$(EXE)
$(VC)
\b
in
\l
ink
$(OUT)
\m
ain.obj
$(OUT)
\m
ongoose.obj
$(LINKFLAGS)
\
/out:
$(OUT)
\$
(
PROG
)
.exe
# Build for Windows under MinGW
# Build for Windows under MinGW
#MINGWDBG= -DDEBUG -O0
#MINGWDBG= -DDEBUG -O0
...
...
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