-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (36 loc) · 853 Bytes
/
Copy pathMakefile
File metadata and controls
53 lines (36 loc) · 853 Bytes
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
##
## Makefile for domusic in /home/brunie_j/local/my/domusic
##
## Made by Brunier Jean
## Login <brunie_j@epitech.net>
##
## Started on Wed Feb 13 15:57:38 2013 Brunier Jean
## Last update Wed May 15 09:40:00 2013 Brunier Jean
##
CXX = clang++
NAME = a.out
DOBJ = obj
DSRC = src
DINC = .
SRCS = Sound.cpp \
Input.cpp \
Key.cpp \
Piano.cpp \
Controler.cpp \
main.cpp
INCLUDE = $(addprefix -I $(DSRC)/, $(DINC))
OBJS = $(addprefix $(DOBJ)/, $(SRCS:.cpp=.o))
CXXFLAGS= $(INCLUDE) -Wall -Wextra -Werror -g -Ifmod/inc
LDXFLAGS= `sdl-config --cflags --libs` fmod/lib/libfmodex64.so -lm
all: $(NAME)
$(NAME): $(OBJS)
$(CXX) $^ -o $@ $(LDXFLAGS)
$(DOBJ)/%.o: $(DSRC)/%.cpp
@mkdir -p $(@D)
$(CXX) $^ -c -o $@ $(CXXFLAGS)
clean:
rm -Rf $(DOBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re