aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-16 16:55:26 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-16 16:55:26 -0500
commita151adc4ce1473dc66a38d4800b54f9d56065419 (patch)
tree6ef0ab394b0c56c2c0646b3c66c7df9d3fa9af42 /Makefile
parente1e81a1fa579341a5052cc9b9275c30445fcc567 (diff)
downloaduxd-a151adc4ce1473dc66a38d4800b54f9d56065419.tar.gz
add targets for testing with various compilers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 128e6e7..f7d2c72 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ DEFINES=-DVERSION='"$(VERSION)"'
WARNFLAGS=-std=c89 -Wall -pedantic -Wextra
CFLAGS=$(DEFINES) $(WARNFLAGS) $(MYCFLAGS)
-.PHONY: all test man clean install
+.PHONY: all test man clean install g++ clang++ clang
all: uxd man
@@ -56,3 +56,20 @@ ver.rst:
clean:
rm -f uxd
+
+# the rest of the targets are for portability testing.
+
+tcc: clean
+ $(MAKE) CC=tcc
+
+pcc: clean
+ $(MAKE) CC=pcc
+
+clang: clean
+ $(MAKE) CC=clang
+
+g++: clean
+ $(MAKE) CC=g++ WARNFLAGS="-Wall -Wno-write-strings -xc++"
+
+clang++: clean
+ $(MAKE) CC=clang++ WARNFLAGS="-Wall -Wno-write-strings -xc++"