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
2dfc7912
Commit
2dfc7912
authored
Feb 07, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better lua build
parent
416f4bf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
Makefile
examples/Makefile
+5
-11
No files found.
examples/Makefile
View file @
2dfc7912
CFLAGS
=
-W
-Wall
-I
..
-pthread
-g
-pipe
$(CFLAGS_EXTRA)
CFLAGS
=
-W
-Wall
-I
..
-pthread
-g
-pipe
$(CFLAGS_EXTRA)
DLL_FLAGS
=
-DLUA_COMPAT_ALL
-I
../build
RM
=
rm
-rf
RM
=
rm
-rf
MSVC
=
../../vc6
MSVC
=
../../vc6
CL
=
$(MSVC)
/bin/cl
CL
=
$(MSVC)
/bin/cl
CLFLAGS
=
/MD /TC /nologo
$(CFLAGS_EXTRA)
/W3
\
CLFLAGS
=
/MD /TC /nologo
$(CFLAGS_EXTRA)
/W3
\
/I
$(MSVC)
/include /I.. /Dsnprintf
=
_snprintf
/I
$(MSVC)
/include /I.. /Dsnprintf
=
_snprintf
LFLAGS
=
/link /incremental:no /libpath:
$(MSVC)
/lib /machine:IX86
LFLAGS
=
/link /incremental:no /libpath:
$(MSVC)
/lib /machine:IX86
LUA_FLAGS
=
-I
/usr/local/include
-L
/usr/local/lib
-llua
ifeq
($(OS),Windows_NT)
ifeq
($(OS),Windows_NT)
...
@@ -26,6 +24,10 @@ else
...
@@ -26,6 +24,10 @@ else
endif
endif
endif
endif
# To enable Lua in a server, uncomment following lines
LUA
=
../lua-5.2.3/src
#CFLAGS += -I$(LUA) -L$(LUA) -llua
all
:
websocket_html.c
all
:
websocket_html.c
$(CC)
hello.c ../mongoose.c
-o
hello
$(CFLAGS)
$(CC)
hello.c ../mongoose.c
-o
hello
$(CFLAGS)
$(CC)
websocket.c websocket_html.c ../mongoose.c
-o
websocket
$(CFLAGS)
$(CC)
websocket.c websocket_html.c ../mongoose.c
-o
websocket
$(CFLAGS)
...
@@ -35,12 +37,6 @@ all: websocket_html.c
...
@@ -35,12 +37,6 @@ all: websocket_html.c
$(CC)
auth.c ../mongoose.c
-o
auth
$(CFLAGS)
$(CC)
auth.c ../mongoose.c
-o
auth
$(CFLAGS)
$(CC)
server.c ../mongoose.c
-o
server
$(CFLAGS)
$(CC)
server.c ../mongoose.c
-o
server
$(CFLAGS)
chat$(EXE_SUFFIX)
:
chat.c
$(CC)
chat.c ../mongoose.c
-DMONGOOSE_USE_LUA
-o
$@
$(CFLAGS)
$(LUA_FLAGS)
# $(CC) chat.c ../mongoose.c -o chat $(CFLAGS)
# $(CC) lua_dll.c ../build/lua_5.2.1.c -o $@.so $(CFLAGS) $(DLL_FLAGS)
websocket_html.c
:
websocket.html
websocket_html.c
:
websocket.html
perl mkdata.pl
$<
>
$@
perl mkdata.pl
$<
>
$@
...
@@ -53,7 +49,5 @@ windows: websocket_html.c
...
@@ -53,7 +49,5 @@ windows: websocket_html.c
$(CL)
auth.c ../mongoose.c
$(CLFLAGS)
$(LFLAGS)
$(CL)
auth.c ../mongoose.c
$(CLFLAGS)
$(LFLAGS)
$(CL)
server.c ../mongoose.c
$(CLFLAGS)
$(LFLAGS)
$(CL)
server.c ../mongoose.c
$(CLFLAGS)
$(LFLAGS)
#$(CL) lua_dll.c $(CLFLAGS) $(DLL_FLAGS) /DLL $(LFLAGS) /SUBSYSTEM:WINDOWS /ENTRY:luaopen_lua_dll /EXPORT:luaopen_lua_dll /out:lua_dll.dll
clean
:
clean
:
-
@
$(RM)
hello upload post websocket
chat
*
.exe
*
.dSYM
*
.obj .
*
o
-
@
$(RM)
hello upload post websocket
auth server
*
.exe
*
.dSYM
*
.obj .
*
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