-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (17 loc) · 831 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
CPP=clang++
LDFLAGS=-lcurl
#CFLAGS=-I../src/json/src -Wall -Wextra -Werror -O3 -march=native
CFLAGS=-I../src/json/src -Wall -Wextra -Werror -g
CPPFLAGS=-std=c++14
all: youtube_list_playlist youtube_search
clean:
rm cURL.o HttpResponse.o youtube_search youtube_list_playlist
youtube_list_playlist: youtube_list_playlist.cpp cURL.o HttpResponse.o config.h
${CPP} -o youtube_list_playlist ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} youtube_list_playlist.cpp cURL.o HttpResponse.o
youtube_search: youtube_search.cpp cURL.o HttpResponse.o config.h
${CPP} -o youtube_search ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} youtube_search.cpp cURL.o HttpResponse.o
cURL.o: cURL.cpp
${CPP} -c -o cURL.o ${CPPFLAGS} ${CFLAGS} cURL.cpp
HttpResponse.o: HttpResponse.cpp
${CPP} -c -o HttpResponse.o ${CPPFLAGS} ${CFLAGS} HttpResponse.cpp
.PHONY: all clean