]> git.lizzy.rs Git - linenoise.git/blobdiff - Makefile
Added some casts to make it easier to include in a c++ project
[linenoise.git] / Makefile
index 7e50716eb3f98c4939b30c4423a1e46c36343b29..4c218d427cb32892802c27a118720ac6588bd5e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,5 +6,8 @@ linenoise_example: linenoise.h linenoise.c example.c
 linenoise_utf8_example: linenoise.c utf8.c example.c
        $(CC) -DNO_COMPLETION -DUSE_UTF8 -Wall -W -Os -g -o $@ linenoise.c utf8.c example.c
 
+test_cpp_compile: linenoise.h linenoise.c
+       g++ -Wall -W -Os -g -c -o linenoise.o linenoise.c 
+
 clean:
        rm -f linenoise_example linenoise_utf8_example