forked from lassir/bcrypt-samp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (16 loc) · 665 Bytes
/
makefile
File metadata and controls
23 lines (16 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
OUTFILE = bin/bcrypt-samp.so
GPP = g++ -m32
COMPILER_FLAGS = -c -O3 --std=c++11 -D _strdup=strdup
LINKER_FLAGS = -O2 -fshort-wchar -shared -static -pthread
LIBRARIES = -lrt -lboost_log -lboost_thread -lboost_date_time -lboost_system -lboost_filesystem
CRYPT_OBJECTS = crypt_blowfish.o crypt_gensalt.o wrapper.o
OBJECTS = amxplugin.o $(CRYPT_OBJECTS) bcrypt.o plugin.o callback.o natives.o main.o
all: compile link
compile:
$(GPP) $(COMPILER_FLAGS) -U__i386__ src/crypt_blowfish/*.cpp
$(GPP) $(COMPILER_FLAGS) src/SDK/*.cpp
$(GPP) $(COMPILER_FLAGS) src/*.cpp
link:
$(GPP) $(LINKER_FLAGS) -o $(OUTFILE) $(OBJECTS) $(LIBRARIES)
clean:
rm -f *.o $(OUTFILE)