-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeFile
27 lines (20 loc) · 918 Bytes
/
MakeFile
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
CC=g++
CFLAGS=-Wshadow -Winit-self -Wredundant-decls -Wcast-align -Wundef -Wfloat-equal\
-Winline -Wunreachable-code -Wmissing-declarations -Wmissing-include-dirs \
-Wswitch-enum -Wswitch-default -Weffc++ -Wmain -Wextra -Wall -g -pipe -fexceptions\
-Wcast-qual -Wconversion -Wctor-dtor-privacy -Wempty-body -Wformat-security\
-Wformat=2 -Wignored-qualifiers -Wlogical-op -Wno-missing-field-initializers -Wnon-virtual-dtor\
-Woverloaded-virtual -Wpointer-arith -Wsign-promo -Wstack-usage=8192 -Wstrict-aliasing\
-Wstrict-null-sentinel -Wtype-limits -Wwrite-strings -Werror=vla\
-D_DEBUG -D_EJUDGE_CLIENT_SIDE
OBJ_DIR = ./object/
SRC_DIR = ./source/
SRC = $(wildcard $(SRC_DIR)*.cpp)
OBJ = $(patsubst $(SRC_DIR)%.cpp, $(OBJ_DIR)%.o, $(SRC))
all: compile
compile: $(OBJ)
$(CC) $(OBJ) -o aboba
$(OBJ_DIR)%.o : $(SRC_DIR)%.cpp
@$(CC) $(CFLAGS) -c $< -o $@
clean:
rm $(OBJ) *.exe