Skip to content

Commit 52a5b8e

Browse files
committed
Improve incremental build by adding extra dependencies
1 parent 8be9b66 commit 52a5b8e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libpkg/Makefile.autosetup

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ LOCAL_LDFLAGS+= @PKG_LIBLDNS_LDFLAGS@ @PKG_LIBLDNS_LIBS@
128128

129129
include $(MK)/lib.mk
130130

131+
$(OBJS) $(SHOBJS): $(top_builddir)/pkg_config.h
132+
131133
all: lib$(LIB)_flat.a
132134

133135
lib$(LIB)_flat.a: mergelib_script

src/Makefile.autosetup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ include $(MK)/prog.mk
7676

7777
all: pkg-static
7878

79-
pkg-static: $(OBJS)
79+
${OBJS}: $(top_builddir)/pkg_config.h
80+
81+
$(PROG): $(top_builddir)/libpkg/libpkg_flat.a
82+
83+
pkg-static: $(OBJS) $(top_builddir)/libpkg/libpkg_flat.a
8084
$(CC) -o $@ $(OBJS) -static $(LDFLAGS) $(STATIC_LDFLAGS)
8185

8286
install: $(PROG) pkg-static

0 commit comments

Comments
 (0)