forked from BitSails/files
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (21 loc) · 731 Bytes
/
makefile
File metadata and controls
29 lines (21 loc) · 731 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
#https://www.youtube.com/watch?v=aw9wHbFTnAQ
CFLAGS=-g -std=c++14 -Wall
all: screen text bin
screen:
@printf "\n\033[33mCompiling screen output program...\n\033[0m"
g++ $(CFLAGS) screen.cpp -o screen.out
@printf "\nRun by typing '\033[1mmake run-screen\033[0m'\n\n"
run-screen: #this is actually more typing (yikes)
./screen.out
text:
@printf "\n\033[32mCompiling text output program...\n\033[0m"
g++ $(CFLAGS) text.cpp -o text.out
@printf "\nRun by typing '\033[1mmake run-text\033[0m'\n\n"
run-text:
./text.out
bin:
@printf "\n\033[36mCompiling binary output program...\n\033[0m"
g++ $(CFLAGS) binary.cpp -o binary.out
@printf "\nRun by typing '\033[1mmake run-bin\033[0m'\n\n"
run-bin:
./text.out