This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (54 loc) · 1.9 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: omiroshn <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/14 14:59:51 by omiroshn #+# #+# #
# Updated: 2018/04/14 14:59:52 by omiroshn ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_gkrellm
FILES = main \
DateModule \
CPU \
RAM \
Ncurses \
SDL \
Host \
Network \
Disk \
OS
HDRS = IMonitorModule.hpp \
IMonitorDisplay.hpp \
DateModule.hpp \
Ncurses.hpp \
SDL.hpp \
Host.hpp \
Network.hpp \
Disk.hpp \
OS.hpp
INCLUDES = -I./frameworks/SDL2.framework/Versions/A/Headers \
-I./frameworks/SDL2_ttf.framework/Versions/A/Headers \
-I./frameworks/SDL2_image.framework/Versions/A/Headers \
-I./frameworks/SDL2_mixer.framework/Headers \
-F./frameworks/
FRAMEWORKS = -F./frameworks \
-rpath ./frameworks \
-framework OpenGL -framework AppKit -framework OpenCl \
-framework SDL2 -framework SDL2_ttf -framework SDL2_image \
-framework SDL2_mixer
SRC = $(addsuffix .cpp, $(FILES))
OBJ = $(addsuffix .o, $(FILES))
FLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME): $(OBJ)
clang++ $(OBJ) -o $(NAME) -lncurses $(FRAMEWORKS)
%.o: %.cpp $(HDRS)
clang++ -o $@ $(FLAGS) $(INCLUDES) -c $<
clean:
rm -rf $(OBJ)
fclean: clean
rm -rf $(NAME)
re: fclean all