aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 15:06:36 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 15:06:36 +0100
commitc7dbd68a3ae5f026c79f9ea23dcd5bb6694b713b (patch)
tree8cea4cc969335f48e099233ecb35e581a69cffce /Makefile
parentTODO: support for 16:10 (diff)
downloadsplashtool-c7dbd68a3ae5f026c79f9ea23dcd5bb6694b713b.tar.gz
splashtool-c7dbd68a3ae5f026c79f9ea23dcd5bb6694b713b.tar.bz2
splashtool-c7dbd68a3ae5f026c79f9ea23dcd5bb6694b713b.tar.xz
m fixesHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index caef517..160db92 100644
--- a/Makefile
+++ b/Makefile
@@ -22,19 +22,11 @@ TMPDIR = /tmp
PKGNAME = splashtool
-WARN = -Wall -Wextra -pedantic -Wformat=2 -Winit-self -Wmissing-include-dirs \
- -Wfloat-equal -Wshadow -Wmissing-prototypes -Wmissing-declarations \
- -Wredundant-decls -Wnested-externs -Winline -Wno-variadic-macros \
- -Wswitch-default -Wconversion -Wcast-align -Wstrict-overflow \
- -Wdeclaration-after-statement -Wundef -Wcast-qual -Wbad-function-cast \
- -Wwrite-strings -Waggregate-return -Wpacked -Wstrict-prototypes \
- -Wold-style-definition -Wdouble-promotion -Wtrampolines \
- -Wsign-conversion -Wsync-nand -Wlogical-op \
- -Wvector-operation-performance -Wsuggest-attribute=const \
- -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \
- -Wsuggest-attribute=format -Wnormalized=nfkc -Wunsafe-loop-optimizations
+CC = gcc -std=gnu99
-FLAGS = -std=gnu99 -Ofast -lm $(WARN)
+CPPFLAGS =
+CFLAGS =
+LDFLAGS = lm
@@ -56,11 +48,11 @@ bin/splashtool: src/splashtool
bin/assemble: obj/assemble.o
@mkdir -p bin
- $(CC) $(FLAGS) $(LDFLAGS) -o $@ $<
+ $(CC) -o $@ obj/assemble.o $(LDFLAGS)
obj/assemble.o: src/assemble.c
@mkdir -p obj
- $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+ $(CC) -c -o $@ src/assemble.c $(CFLAGS) $(CPPFLAGS)
.PHONY: doc
doc: info pdf ps dvi