summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-21 11:30:13 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-21 11:30:13 -0300
commitee2ab4fc801e716ae69fe0548d3477fbdd43036d (patch)
tree35305957d48c1febef11a796e46ac3a5ac93d691
parent5a0a868a61423fa395a89b49471d5451a5ed2c71 (diff)
downloadjet-ee2ab4fc801e716ae69fe0548d3477fbdd43036d.tar.gz
jet-ee2ab4fc801e716ae69fe0548d3477fbdd43036d.zip
Extract make flags
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6cf95e3..1d848c3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+FLAGS=-ggdb -O0 -fno-builtin -Wall -lcurses
+
jet: Makefile *.c
- gcc -ggdb -O0 -fno-builtin -Wall -lcurses jet.c -o ./bin/jet
+ gcc $(FLAGS) jet.c -o ./bin/jet
page: Makefile page.c ./test/page.c
- gcc -lcurses ./test/page.c -o ./bin/page
+ gcc $(FLAGS) ./test/page.c -o ./bin/page