aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:17:32 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:17:32 +0100
commit2e6ff7df917fc8f261268e752f84986ed3c683c5 (patch)
tree903ea5d54d281cb88600f4ee46546a3672472b1e /Makefile
parentUpdate e-mail (diff)
downloadargparser-2e6ff7df917fc8f261268e752f84986ed3c683c5.tar.gz
argparser-2e6ff7df917fc8f261268e752f84986ed3c683c5.tar.bz2
argparser-2e6ff7df917fc8f261268e752f84986ed3c683c5.tar.xz
m fixesHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dfbc2f6..ff1e3b5 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+.POSIX:
+
PREFIX = /usr
DATA = /share
LIB = /lib
@@ -26,6 +28,8 @@ JAVA_OPTIMISE = -O
JAVAC = javac
+CC = gcc -std=gnu99
+
WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
-Wtrampolines -Wfloat-equal -Wshadow -Wmissing-prototypes -Wmissing-declarations \
@@ -81,9 +85,9 @@ bin/ArgParser.jar: src/argparser/ArgParser.java
c: bin/argparser.so
bin/argparser.so: src/argparser.c src/argparser.h
@mkdir -p bin
- $(CC) $(C_OPTIMISE) -std=gnu99 $(WARN) -fPIC -c src/argparser.c -o bin/argparser.o
- $(CC) $(C_OPTIMISE) -std=gnu99 $(WARN) -shared bin/argparser.o -o bin/argparser.so
- $(CC) $(C_OPTIMISE) -std=gnu99 $(WARN) src/test.c bin/argparser.o -o bin/test
+ $(CC) $(C_OPTIMISE) $(WARN) -fPIC -c src/argparser.c -o bin/argparser.o
+ $(CC) $(C_OPTIMISE) $(WARN) -shared bin/argparser.o -o bin/argparser.so
+ $(CC) $(C_OPTIMISE) $(WARN) src/test.c bin/argparser.o -o bin/test
@@ -161,4 +165,3 @@ uninstall-info:
.PHONY: clean
clean:
-rm -r -- bin
-