From 2df7df5f5b0f325864f92c5a58f3c132cfff989e Mon Sep 17 00:00:00 2001 From: vin Date: Sun, 21 Jul 2024 13:52:48 -0400 Subject: [PATCH] add CFLAGS --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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