summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2019-03-09 18:40:33 -0700
committerAaron Ball <nullspoon@oper.io>2019-03-09 20:26:27 -0700
commitc7033290ac21023c74f59c6f02a918cf6b2b36a8 (patch)
tree61569757b69602923b7376b3e9274a3af773d871 /Makefile
parent93a26f6394546f53b9531cead1713311de0dda78 (diff)
downloadupwgen-c7033290ac21023c74f59c6f02a918cf6b2b36a8.tar.gz
upwgen-c7033290ac21023c74f59c6f02a918cf6b2b36a8.tar.xz
Added unicode tiers
Previously, only the -i,--i18n switch existed, which would append the world's top ~10 languages to the unicode array. This was often problematic because many fonts don't have glyphs for the lesser-used writing systems. This also had the inadvertant effect of making many of the generated i18n passwords unacceptable for many services. This is because the more common unicode characters are accepted (eg: latin basic, extended, suppliment, etc), but the less common are considered "disallowed symbols", making most of the generated passwords unacceptable. This introduces the -1, -2, -3, and -4 switches to alleviate this. The -1 switch includes only the most used scripts in the world (Latin and IPA phonetic), which covers some of the biggest languages in use making these passwords most likely to be acceptable. The subsequent switches include lesser and lesser used scripts in sequence. This commit splits out all i18n functions into the new i18n_cat library to clean up main. Also made intrcat hidden, implementing i18n_cat_ascii_* functions to replace all external calls to it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ff1e25..731b5b0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,9 @@ out = upwgen
PREFIX = /usr/bin
all:
- $(CC) $(CCOPTS) src/main.c -o $(out)
+ @if [ ! -d obj ]; then mkdir obj; fi
+ $(CC) $(CCOPTS) -c src/i18n_cat.c -o obj/i18n_cat.o
+ $(CC) $(CCOPTS) src/main.c obj/*.o -o $(out)
install:
mkdir -p $(DESTDIR)/$(PREFIX)

Generated by cgit