Skip to content

Commit

Permalink
production makefile, minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristo Isberg committed Apr 13, 2019
1 parent e1f0750 commit 57e54db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
GPP = g++
GCC = gcc
OUTPUT = "./plugins/GPS.so"
CC_PARAMS =-std=c++17 -c -m32 -fPIC -g -O0 -w -DLINUX -I./lib/sdk/amx/
CC_PARAMS =-std=c++17 -c -m32 -fPIC -O3 -w -DLINUX -I./lib/sdk/amx/

all:
$(GPP) $(CC_PARAMS) ./lib/sdk/amxplugin.cpp
$(GPP) $(CC_PARAMS) ./lib/sdk/amxplugin2.cpp
$(GPP) $(CC_PARAMS) ./src/*.cpp
$(GPP) -m32 -g -O0 -fshort-wchar -shared -o $(OUTPUT) *.o
$(GPP) -m32 -O3 -fshort-wchar -shared -o $(OUTPUT) *.o
-rm -f *.o
2 changes: 1 addition & 1 deletion src/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace Container
delete connection;
}

Connection* Find(int id)
Connection* Find(const int id)
{
const auto connection = connections.find(id);

Expand Down

0 comments on commit 57e54db

Please sign in to comment.