From a151adc4ce1473dc66a38d4800b54f9d56065419 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 16 Dec 2024 16:55:26 -0500 Subject: add targets for testing with various compilers --- Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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++" -- cgit v1.2.3