Added Option for Optimisation

This commit is contained in:
0xmac 2024-12-12 13:24:03 +01:00
parent d932a248c3
commit 372af63728

View File

@ -1,6 +1,7 @@
.ONESHELL: .ONESHELL:
CC=gcc CC=gcc
O=2
CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics
PREFIX=$(HOME)/.local PREFIX=$(HOME)/.local
@ -12,7 +13,7 @@ clean:
ls7emulator: ls7emulator:
cd src cd src
$(CC) main.c -o ls7emulator $(CFLAGS) -O2 $(CC) main.c -o ls7emulator $(CFLAGS) -O$(O)
rm ../bin -rf rm ../bin -rf
mkdir ../bin mkdir ../bin