summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvin <git@vineetk.net>2024-07-21 13:52:48 -0400
committervin <git@vineetk.net>2024-07-21 13:52:48 -0400
commit2df7df5f5b0f325864f92c5a58f3c132cfff989e (patch)
tree7b57dd9739ec56837fe7aae1599ac2fc4f8ce891
parent85c6a414f9f14e388cc9a5e1ee36ffc0e1d93273 (diff)
add CFLAGS
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a7f070a..e0a80f1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+CFLAGS = -O2 -Wall -Wextra -pedantic -Wno-unused-parameter
+
nes:
- ${CC} -o nes cpu.c rom.c
+ ${CC} ${CFLAGS} -o nes cpu.c rom.c ppu.c
test: nes
./nes ${HOME}/src/other/nes-test-roms/other/nestest.nes