aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-07-27 14:34:16 +0200
committerNunoSempere <nuno.sempere@protonmail.com>2023-07-27 14:34:16 +0200
commitb87693e4c57f36e528a9d6f46febcac32c90b808 (patch)
treecf2cd5d52085def93d1c40de5cf79e8b9e05b527 /makefile
parente2c81f25957ea542f430132c9c96033ff77cfede (diff)
use -O3 -Wall gcc flags, add old.reddit.com css
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefile b/makefile
index 43f8eb5..329f3f9 100644
--- a/makefile
+++ b/makefile
@@ -7,6 +7,8 @@
## C compiler
CC=gcc # gcc: more options. Also I don't know whether tcc has error messages/debug options.
+WARNINGS=-Wall
+OPTIMIZED=-O3 #-Ofast
## CC=tcc # tcc: much faster
## Main file
@@ -68,7 +70,7 @@ build: $(SRC) $(PLUGS) $(CONFIG)
sed -i "s|$(DEFAULT_DIR)|$(CURRENT_DIR)|g" {} +
# Compile rosenrot
GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/
- $(CC) $(DEBUG) $(INCS) $(PLUGS) $(SRC) -o rose $(LIBS) $(ADBLOCK)
+ $(CC) $(WARNINGS) $(OPTIMIZED) $(DEBUG) $(INCS) $(PLUGS) $(SRC) -o rose $(LIBS) $(ADBLOCK)
inspect: build
GTK_DEBUG=interactive ./rose