util  Check-in [8a57f6203c]

Overview
Comment:add android support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8a57f6203cb4840a6ced243310727b7f4fe133bf8224526400a83cf36c7ae2d5
User & Date: lexi on 2019-08-16 03:00:33
Other Links: manifest | tags
Context
2019-08-18
05:12
add ability to disable key-save mechanism check-in: eb56f79816 user: lexi tags: trunk
2019-08-16
03:00
add android support check-in: 8a57f6203c user: lexi tags: trunk
02:03
minor tweaks check-in: a2d840e698 user: lexi tags: trunk
Changes

Modified kpw.d/makefile from [0ee772709b] to [e4660982d8].

     1      1   include ../makerules
     2      2   
     3      3   cdeps = compose.c iaia.c tbl.c
     4      4   cpaths = $(cdeps:%=$(root)/clib/%)
     5      5   
     6      6   $(root)/kpw: kpw.c opt.inc err.inc $(cpaths)
     7         -	$(cc) -I$(root) $< -lsodium -o $@ $(flags) $(cc-post)
            7  +	$(cc) -I$(root) $< -lsodium $(l-shmem) -o $@ $(flags) $(cc-post)
     8      8   
     9      9   tab = cat $< | awk -v emit=$1 -F'\t+' -f $<.awk >> $@
    10     10   
    11     11   opt.inc: optab optab.awk
    12     12   	:>$@
    13     13   	$(call tab,cond)
    14     14   	$(call tab,enum)

Modified makerules from [77fcbe1814] to [053afc7a8f].

    14     14   cc-flags = $(if $(debug),-g,-O$(cc-opt))
    15     15   cc = $(CC) $(cc-flags)
    16     16   
    17     17   post = $(if $(debug),, && strip $@)
    18     18   cc-post = $(post)
    19     19   sc-post = $(post)
    20     20   mc-post = $(post)
           21  +
           22  +os = $(shell uname -o)
           23  +
           24  +ifeq ($(os),Android)
           25  +    l-shmem = -landroid-shmem
           26  +endif
    21     27   
    22     28   %: %.c
    23     29   	$(cc) $< -o$@ $(cc-post)
    24     30   
    25     31   %: %.ml
    26     32   	$(mc) $< -o $@ $(mc-post)
    27     33