-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (36 loc) · 1.58 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: Peer <pde-bakk@student.codam.nl> +#+ #
# +#+ #
# Created: 2020/07/25 17:28:30 by pde-bakk #+# #+# #
# Updated: 2020/11/09 23:30:36 by peerdb ######## odam.nl #
# #
# **************************************************************************** #
NAME = containers.out
ifdef COMPILER
CXX = $(COMPILER)
endif
INCLUDE = $(shell find srcs -type d | sed s/^/-I/)
CXXFLAGS = -W -Wall -Wextra -Werror -pedantic -ansi -std=c++98
ifdef DEBUG
CXXFLAGS += -g -fsanitize=address #-fsanitize=undefined -fsanitize=alignment -fsanitize=bounds -fsanitize=null -fsanitize=return
else
CXXFLAGS += -Ofast
endif
TESTDIR = tests
FILES = main.cpp
ifdef STD
FILES = stdmain.cpp
endif
list vector map stack queue deque set multiset multimap: fclean
$(CXX) $(CXXFLAGS) $(TESTDIR)/$@_$(FILES) -o $(NAME) -Isrcs/$@
clean:
fclean: clean
@rm -rf $(NAME) $(NAME).dSYM
fuckingclean: fclean
@rm -f $(TESTDIR)/std.txt $(TESTDIR)/ft.txt $(TESTDIR)/diff.txt \
$(TESTDIR)/*stdmain.cpp
re: fclean