Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
179761fd
Commit
179761fd
authored
Jan 23, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed LUA_FLAGS from CL flags
parent
b783813e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Makefile
Makefile
+5
-5
No files found.
Makefile
View file @
179761fd
...
...
@@ -26,7 +26,7 @@ all:
# To build with Lua, download and unzip Lua 5.2.1 source code into the
# mongoose directory, and then add $(LUA_FLAGS) to CFLAGS below
LUA
=
lua-5.2.1/src
LUA_FLAGS
=
-
DUSE_LUA
-
I
$(LUA)
-L
$(LUA)
-llua
-lm
LUA_FLAGS
=
-I
$(LUA)
-L
$(LUA)
-llua
-lm
CFLAGS
=
-std
=
c99
-O2
-W
-Wall
-pedantic
-pthread
$(COPT)
LIB
=
lib
$(PROG)
.so
$(MONGOOSE_LIB_SUFFIX)
...
...
@@ -49,8 +49,8 @@ cocoa:
$(CC)
mongoose.c main.c
-DUSE_COCOA
$(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
unix_unit_test
:
$(CC)
-I
.
test
/unit_test.c
-o
unit_test
$(CFLAGS)
unix_unit_test
:
$(LUA_OBJECTS)
$(CC)
test
/unit_test.c
-o
unit_test
-I
.
$(LUA_FLAGS)
$(CFLAGS)
-g
-O0
./unit_test
##########################################################################
...
...
@@ -66,7 +66,7 @@ CYA = e:/cyassl-2.0.0rc2
#DBG = /Zi /DDEBUG /Od
DBG
=
/DNDEBUG /O1
CL
=
$(MSVC)
/bin/cl /MD /TC /nologo
$(DBG)
/Gz /W3 /DNO_SSL_DL
\
/I
$(MSVC)
/include /
DUSE_LUA /
I
$(LUA)
/I. /GA
/I
$(MSVC)
/include /I
$(LUA)
/I. /GA
MSLIB
=
/link /incremental:no /libpath:
$(MSVC)
/lib /machine:IX86
\
user32.lib shell32.lib comdlg32.lib ws2_32.lib advapi32.lib
\
cyassl.lib lua.lib
...
...
@@ -116,7 +116,7 @@ windows_unit_test: cyassl.lib lua.lib
windows
:
cyassl.lib lua.lib
$(MSVC)
/bin/rc build
\r
es.rc
$(CL)
main.c mongoose.c
$(MSLIB)
build
\r
es.res
\
$(CL)
main.c mongoose.c
/DUSE_LUA
$(MSLIB)
build
\r
es.res
\
/out:
$(PROG)
.exe /subsystem:windows
# $(CL) mongoose.c /GD $(LINK) /DLL /DEF:build\dll.def /out:$(PROG).dll
...
...
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