diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-16 16:55:26 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-16 16:55:26 -0500 |
commit | a151adc4ce1473dc66a38d4800b54f9d56065419 (patch) | |
tree | 6ef0ab394b0c56c2c0646b3c66c7df9d3fa9af42 /Makefile | |
parent | e1e81a1fa579341a5052cc9b9275c30445fcc567 (diff) | |
download | uxd-a151adc4ce1473dc66a38d4800b54f9d56065419.tar.gz |
add targets for testing with various compilers
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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++" |