Commit fa4179ee authored by Sergey Lyubka's avatar Sergey Lyubka

Made clean silent

parent a8c8cfb6
......@@ -9,6 +9,7 @@ EXE_SUFFIX =
CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread -pipe -I. -I.. $(CFLAGS_EXTRA)
VERSION = $(shell perl -lne \
'print $$1 if /define\s+MONGOOSE_VERSION\s+"(\S+)"/' ../mongoose.h)
RM = rm -rf
VDIR = mongoose-$(VERSION)
# Stock windows binary builds with Lua and YASSL library.
......@@ -62,6 +63,7 @@ LINK = $(MSVC)/bin/link $(LINK_FLAGS)
ifeq ($(OS), Windows_NT)
EXE_SUFFIX = .exe
RM = del
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Linux)
......@@ -160,6 +162,6 @@ release: tarball macos
clean:
@cd ../examples && $(MAKE) clean
@rm -rf *.o *.core $(PROG) *.obj *.so $(PROG).txt *.dSYM *.tgz \
@$(RM) *.o *.core $(PROG) *.obj *.so $(PROG).txt *.dSYM *.tgz \
$(PROG).exe *.dll *.lib res.o res.RES *.dSYM *.zip *.pdb \
*.exe *dmg* $(PROG)-* unix_unit_test
CFLAGS = -W -Wall -I.. -pthread -g -pipe $(COPT)
DLL_FLAGS = -DLUA_COMPAT_ALL -I../build
RM = rm -rf
ifeq ($(OS),Windows_NT)
RM = del /q /f
else
UNAME_S := $(shell uname -s)
DLL_FLAGS += -shared
......@@ -43,4 +45,4 @@ windows:
#$(CL) lua_dll.c $(CLFLAGS) $(DLL_FLAGS) /DLL $(LFLAGS) /SUBSYSTEM:WINDOWS /ENTRY:luaopen_lua_dll /EXPORT:luaopen_lua_dll /out:lua_dll.dll
clean:
@rm -rf hello upload post websocket chat *.exe *.dSYM *.obj .*o
-@$(RM) hello upload post websocket chat *.exe *.dSYM *.obj .*o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment