-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.debug
54 lines (44 loc) · 1.06 KB
/
Makefile.debug
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
CPP = g++
ARCHFLAG = -m32 -g
METAMOD_SRCDIR = ./dependencies/metamod-hl1/metamod
HLSDK_BASEDIR = ./dependencies/hlsdk
BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -Dlinux=1 -g
CPPFLAGS = ${BASEFLAGS} ${ARCHFLAG} -O0 -w -I"${METAMOD_SRCDIR}" -I"${HLSDK_BASEDIR}/common" -I"${HLSDK_BASEDIR}/dlls" -I"${HLSDK_BASEDIR}/engine" -I"${HLSDK_BASEDIR}/pm_shared" -I"${HLSDK_BASEDIR}/public"
OBJ = NodeMachine.o \
bot.o \
bot_buycode.o \
bot_client.o \
bot_func.o \
bot_navigate.o \
build.o \
dll.o \
engine.o \
game.o \
util.o \
ChatEngine.o \
IniParser.o
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
SO_SUFFIX = so
endif
ifeq ($(UNAME_S),Darwin)
SO_SUFFIX = dylib
endif
realbot_mm_i386.${SO_SUFFIX}: ${OBJ}
${CPP} ${ARCHFLAG} -fPIC -shared -o $@ ${OBJ} -ldl
mkdir -p Release
mv $@ ${OBJ} Release
clean:
rm -f *.o
rm -f *.map
rm -f *.${SO_SUFFIX}
mv Release/*.${SO_SUFFIX} .
rm -f Release/*
mv *.${SO_SUFFIX} Release
distclean:
rm -rf Release
mkdir -p Release
%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@
%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@