@@ -12,22 +12,22 @@ # link rule .PHONY: wgsync -$B/wgsync: $B/wgsync.o $B/pqp.o $B/def.o $B/wireguard.o | $B/ +$B/wgsync: $B/wgsync.o $B/pqp.o $B/def.o $B/wglist.o $B/wireguard.o | $B/ $(CC) $(ld-flags) $^ -o $@ # build rules -$B/%.o: src/%.c | $B/ +$B/%.o: src/%.c src/def.h | $B/ $(CC) $(cc-flags) -c $< -o $@ $B/wireguard.o: $E/wglib/wireguard.c $E/wglib/wireguard.h | $B/ $(CC) -std=c11 -c $< -o $@ # dep listings -$B/wgsync.o: $E/wglib/wireguard.h src/pqp.h src/def.h -$B/pqp.o: src/pqp.h src/def.h -$B/def.o: src/def.h +$B/wgsync.o: $E/wglib/wireguard.h src/pqp.h src/wglist.h src/list.h +$B/wglist.o: $E/wglib/wireguard.h src/wglist.h src/list.h +$B/pqp.o: src/pqp.h # fetch rules %/: mkdir -p $@