commit | d8dbd903d024f84a149dac2f8a674a68dfed47a3 | [log] [tgz] |
---|---|---|
author | Yousong Zhou <yszhou4tech@gmail.com> | Mon Jan 05 17:03:35 2015 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Mon Jan 05 17:03:35 2015 +0000 |
tree | d885c2fbb868ef4c8c70dfaa7a08f05f67350389 | |
parent | 81c538efcebfce2ce4a1d3a420b6c885b8f08df9 [diff] |
Fix race condition issue in makefile.
diff --git a/Makefile b/Makefile index 5675f60..bcbd557 100644 --- a/Makefile +++ b/Makefile
@@ -148,10 +148,12 @@ $(objs:.o=.c) $(hdrs): ln -s $(top)/$(SRC)/$@ . +$(objs): $(copts_conf) $(hdrs) + .c.o: $(CC) $(CFLAGS) $(COPTS) $(i18n) $(build_cflags) $(RPM_OPT_FLAGS) -c $< -dnsmasq : $(copts_conf) $(hdrs) $(objs) +dnsmasq : $(objs) $(CC) $(LDFLAGS) -o $@ $(objs) $(build_libs) $(LIBS) dnsmasq.pot : $(objs:.o=.c) $(hdrs)