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
ed32e3be
Commit
ed32e3be
authored
Jan 22, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added unix_unit_test and windows_unit_test targets
parent
83fae879
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
Makefile
Makefile
+13
-6
No files found.
Makefile
View file @
ed32e3be
...
@@ -49,6 +49,9 @@ cocoa:
...
@@ -49,6 +49,9 @@ cocoa:
$(CC)
mongoose.c main.c
-DUSE_COCOA
$(CFLAGS)
-framework
Cocoa
-ObjC
-arch
i386
-arch
x86_64
-o
Mongoose
$(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
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)
./unit_test
##########################################################################
##########################################################################
### WINDOWS build: Using Visual Studio or Mingw
### WINDOWS build: Using Visual Studio or Mingw
...
@@ -63,10 +66,10 @@ CYA = e:/cyassl-2.0.0rc2
...
@@ -63,10 +66,10 @@ CYA = e:/cyassl-2.0.0rc2
#DBG = /Zi /DDEBUG /Od
#DBG = /Zi /DDEBUG /Od
DBG
=
/DNDEBUG /O1
DBG
=
/DNDEBUG /O1
CL
=
$(MSVC)
/bin/cl /MD /TC /nologo
$(DBG)
/Gz /W3 /DNO_SSL_DL
\
CL
=
$(MSVC)
/bin/cl /MD /TC /nologo
$(DBG)
/Gz /W3 /DNO_SSL_DL
\
/I
$(MSVC)
/include /DUSE_LUA /I
$(LUA)
/I
$(MSVC)
/include /DUSE_LUA /I
$(LUA)
/I. /GA
GUILIB
=
user32.lib shell32.lib comdlg32.lib
MSLIB
=
/link /incremental:no /libpath:
$(MSVC)
/lib /machine:IX86
\
LINK
=
/link /incremental:no /libpath:
$(MSVC)
/lib /machine:IX86
\
user32.lib shell32.lib comdlg32.lib ws2_32.lib advapi32.lib
\
/subsystem:windows ws2_32.lib advapi32.lib
cyassl.lib lua.lib
cyassl.lib lua.lib
CYAFL
=
/c /I
$(CYA)
/include
-I
$(CYA)
/include/openssl /I
$(MSVC)
/INCLUDE
\
CYAFL
=
/c /I
$(CYA)
/include
-I
$(CYA)
/include/openssl /I
$(MSVC)
/INCLUDE
\
/I
$(CYA)
/ctaocrypt/include /D _LIB /D OPENSSL_EXTRA
/I
$(CYA)
/ctaocrypt/include /D _LIB /D OPENSSL_EXTRA
...
@@ -107,10 +110,14 @@ lua.lib:
...
@@ -107,10 +110,14 @@ lua.lib:
$(CL)
/c /Fo
$(LUA)
/
$(LUA_SOURCES)
$(CL)
/c /Fo
$(LUA)
/
$(LUA_SOURCES)
$(MSVC)
/bin/lib
$
(
LUA_SOURCES:%.c
=
%.obj
)
/out:
$@
$(MSVC)
/bin/lib
$
(
LUA_SOURCES:%.c
=
%.obj
)
/out:
$@
windows_unit_test
:
cyassl.lib lua.lib
$(CL)
test
/unit_test.c
$(MSLIB)
/out:unit_test.exe
./unit_test.exe
windows
:
cyassl.lib lua.lib
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)
main.c mongoose.c
$(MSLIB
)
build
\r
es.res
\
$(GUILIB)
/out:
$(PROG)
.exe
/out:
$(PROG)
.exe /subsystem:windows
# $(CL) mongoose.c /GD $(LINK) /DLL /DEF:build\dll.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
...
...
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