-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.mk
40 lines (33 loc) · 764 Bytes
/
config.mk
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
CC ?= cc
TARGET := L4D2Cheat
VERSION := $(shell head -n 1 VERSION)
DIR ?= /usr/local/sbin
ifeq ($(RELEASE),1)
CPPFLAGS := -DNDEBUG
endif
ifeq ($(DEBUG),1)
CFLAGS := -O0 -g -fsanitize=undefined,address
else
CFLAGS := -O3
endif
LDFLAGS := -pthread
CPPFLAGS += -DVERSION=\"$(VERSION)\"
CFLAGS += -std=c99 \
-m32 \
-pedantic \
-Wall \
-Werror \
-Wextra \
-Wno-deprecated-declarations \
-Wmissing-prototypes \
-Wold-style-definition \
-Iinclude \
$(CPPFLAGS)
SRC := src/commands.c \
src/game.c \
src/handler.c \
src/keyboard.c \
src/main.c \
src/mem.c \
src/utils.c
OBJ := $(SRC:.c=.o)