util  Diff

Differences From Artifact [11c34eecc9]:

To Artifact [12884906c5]:


     9      9   dbg-flags = $(if $(debug),-g -D_cfg_debug,)
    10     10   cc-flags = -std=c2x $(pq-inc) $(wg-inc) $(dbg-flags)
    11     11   ld-flags = $(pq-lib) $(dbg-flags)
    12     12   
    13     13   
    14     14   # link rule 
    15     15   .PHONY: wgsync
    16         -$B/wgsync: $B/wgsync.o $B/pqp.o $B/def.o $B/wireguard.o | $B/
           16  +$B/wgsync: $B/wgsync.o $B/pqp.o $B/def.o $B/wglist.o $B/wireguard.o | $B/
    17     17   	$(CC) $(ld-flags) $^ -o $@
    18     18   
    19     19   # build rules 
    20         -$B/%.o: src/%.c | $B/
           20  +$B/%.o: src/%.c src/def.h | $B/
    21     21   	$(CC) $(cc-flags) -c $< -o $@
    22     22   
    23     23   $B/wireguard.o: $E/wglib/wireguard.c $E/wglib/wireguard.h | $B/
    24     24   	$(CC) -std=c11 -c $< -o $@
    25     25   
    26     26   # dep listings
    27         -$B/wgsync.o: $E/wglib/wireguard.h src/pqp.h src/def.h
    28         -$B/pqp.o: src/pqp.h src/def.h 
    29         -$B/def.o: src/def.h
           27  +$B/wgsync.o: $E/wglib/wireguard.h src/pqp.h src/wglist.h src/list.h
           28  +$B/wglist.o: $E/wglib/wireguard.h src/wglist.h src/list.h
           29  +$B/pqp.o: src/pqp.h 
    30     30   
    31     31   # fetch rules
    32     32   %/:
    33     33   	mkdir -p $@
    34     34   
    35     35   wg-lib-uri = https://git.zx2c4.com/wireguard-tools/plain/contrib/embeddable-wg-library
    36     36   $E/wglib/%: | $E/wglib/
    37     37   	curl $(wg-lib-uri)/$* >$@