-
Notifications
You must be signed in to change notification settings - Fork 0
/
var.mk
45 lines (27 loc) · 780 Bytes
/
var.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
41
42
43
44
45
include sources.mk
BLUE = \033[36m
WHITE = \033[0m
CC = gcc
LD = $(CC)
RM = rm -rf
BUILD_SRV = build_srv
BUILD_CLI = build_ai
NAME_SRV = zappy_server
NAME_AI = zappy_ai
NAME_TEST = unit_tests
OBJ_SRV = $(SRC_SRV:%.c=$(BUILD_SRV)/%.o)
PROJECT_ROOT := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
INCLUDES_PATH_SRV = $(PROJECT_ROOT)/server/include/libs
override LDFLAGS +=
override LDLIBS += -Lserver/libs -lsocker -lm
override CFLAGS += -Wall \
-Wextra \
-ffreestanding \
-Wshadow \
-Wsign-compare \
-Wno-unused-parameter \
-Wno-unused-variable
override CPPFLAGS += -I./share/include \
-I./server/include \
-I./server/include/libs \
override DEPFLAGS += -MT $@ -MMD -MP -MF $(@:.o=.d)