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
2
3
4
5
6
7
8
9
10
11
12
13
14
include ../makerules

cdeps = compose.c iaia.c tbl.c
cpaths = $(cdeps:%=$(root)/clib/%)

$(root)/kpw: kpw.c opt.inc err.inc $(cpaths)
	$(cc) -I$(root) $< -lsodium -o $@ $(flags) $(cc-post)

tab = cat $< | awk -v emit=$1 -F'\t+' -f $<.awk >> $@

opt.inc: optab optab.awk
	:>$@
	$(call tab,cond)
	$(call tab,enum)






|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
include ../makerules

cdeps = compose.c iaia.c tbl.c
cpaths = $(cdeps:%=$(root)/clib/%)

$(root)/kpw: kpw.c opt.inc err.inc $(cpaths)
	$(cc) -I$(root) $< -lsodium $(l-shmem) -o $@ $(flags) $(cc-post)

tab = cat $< | awk -v emit=$1 -F'\t+' -f $<.awk >> $@

opt.inc: optab optab.awk
	:>$@
	$(call tab,cond)
	$(call tab,enum)

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

14
15
16
17
18
19
20






21
22
23
24
25
26
27
cc-flags = $(if $(debug),-g,-O$(cc-opt))
cc = $(CC) $(cc-flags)

post = $(if $(debug),, && strip $@)
cc-post = $(post)
sc-post = $(post)
mc-post = $(post)







%: %.c
	$(cc) $< -o$@ $(cc-post)

%: %.ml
	$(mc) $< -o $@ $(mc-post)








>
>
>
>
>
>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cc-flags = $(if $(debug),-g,-O$(cc-opt))
cc = $(CC) $(cc-flags)

post = $(if $(debug),, && strip $@)
cc-post = $(post)
sc-post = $(post)
mc-post = $(post)

os = $(shell uname -o)

ifeq ($(os),Android)
    l-shmem = -landroid-shmem
endif

%: %.c
	$(cc) $< -o$@ $(cc-post)

%: %.ml
	$(mc) $< -o $@ $(mc-post)