summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-05-22 01:36:49 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-05-22 02:29:20 (GMT)
commitc746a27e91784adf9957600206a5d35dcdad04b1 (patch)
treef279069a03a2cb9720f1c30142445203e86011d6 /Makefile
parent843dfd239a7f23cf3f8fd38cd961282a8fcade10 (diff)
downloadlz4-c746a27e91784adf9957600206a5d35dcdad04b1.zip
lz4-c746a27e91784adf9957600206a5d35dcdad04b1.tar.gz
lz4-c746a27e91784adf9957600206a5d35dcdad04b1.tar.bz2
Test Linking C-Compiled Library and C++-Compiled Tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4afd03f..5776b16 100644
--- a/Makefile
+++ b/Makefile
@@ -172,6 +172,14 @@ gpptest gpptest32: clean
CC=$(CC) $(MAKE) -C $(PRGDIR) all CFLAGS="$(CFLAGS)"
CC=$(CC) $(MAKE) -C $(TESTDIR) all CFLAGS="$(CFLAGS)"
+ctocpptest: LIBCC="$(CC)"
+ctocpptest: TESTCC="$(CXX)"
+ctocpptest: CFLAGS=""
+ctocpptest: clean
+ CC=$(LIBCC) $(MAKE) -C $(LZ4DIR) CFLAGS="$(CFLAGS)" all
+ CC=$(LIBCC) $(MAKE) -C $(TESTDIR) CFLAGS="$(CFLAGS)" lz4.o lz4hc.o lz4frame.o
+ CC=$(TESTCC) $(MAKE) -C $(TESTDIR) CFLAGS="$(CFLAGS)" all
+
c_standards: clean
CFLAGS="-std=c90 -Werror" $(MAKE) clean allmost
CFLAGS="-std=gnu90 -Werror" $(MAKE) clean allmost