-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.windows
58 lines (55 loc) · 1.36 KB
/
Makefile.windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CC=i686-w64-mingw32-g++
CFLAGS=-std=c++11 -c
LDFLAGS= \
-static-libstdc++ \
-static-libgcc \
-Wl,-enable-stdcall-fixup \
-L./lua \
-lluawin \
-L../libs -lcurl -lcurldll \
-DLUA_USER_H=\"lua/lua_user.h\" \
-L../mysql-connector-c-6.1.11-win32/lib \
-lmysql
INCLUDES= \
-I./core -Irjson/include/ \
-I../curl-7.59.0/include \
-I../mysql-connector-c-6.1.11-win32 \
-D _WIN32_WINNT=0x0601
SOURCES= \
core/cmd.cpp \
core/console.cpp \
core/cvars.cpp \
core/filesystem.cpp \
core/main.cpp \
core/net.cpp \
core/strutils.cpp \
core/vk/vkapi.cpp \
core/vk/LongPollConnection.cpp \
core/vk/GroupLongPollConnection.cpp \
core/vk/longpoll.cpp \
core/vk/chat_cache.cpp \
core/lua/luawork.cpp \
core/lua/luapool.cpp \
core/lua/luaModules.cpp \
core/lua/lua_json.cpp \
core/lua/api/ln_vkapi.cpp \
core/lua/api/ln_mysql.cpp \
core/lua/api/ln_cmd.cpp \
core/lua/api/ln_cvars.cpp \
core/lua/api/ln_console.cpp \
core/lua/api/ln_fs.cpp \
core/lua/api/lu_json.cpp \
core/lua/api/lu_string.cpp \
core/lua/api/ln_net.cpp \
core/lua/api/lu_other.cpp \
core/lua/api/luaapi.cpp \
core/eapi/eapi.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=EBP.exe
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $(EXECUTABLE)
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@
clean:
rm -rf $(OBJECTS) $(EXECUTABLE)