aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++"