]> git.lizzy.rs Git - linenoise.git/blobdiff - Makefile
Add utf-8 support to linenoise.c
[linenoise.git] / Makefile
index a285410678fb0ee8773cab2eff4fa97531de9714..7e50716eb3f98c4939b30c4423a1e46c36343b29 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
-linenoise_example: linenoise.h linenoise.c
+all:  linenoise_example linenoise_utf8_example
 
-linenoise_example: linenoise.c example.c
-       $(CC) -Wall -W -Os -g -o linenoise_example linenoise.c example.c
+linenoise_example: linenoise.h linenoise.c example.c
+       $(CC) -Wall -W -Os -g -o $@ 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
 
 clean:
-       rm -f linenoise_example
+       rm -f linenoise_example linenoise_utf8_example