mk/prog.mk: rebuild static binaries if static libs change
This commit is contained in:
parent
bf5eba411b
commit
9139cc79bf
@ -46,9 +46,9 @@ endif
|
|||||||
@printf " [CC]\t\t$@\n"
|
@printf " [CC]\t\t$@\n"
|
||||||
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
|
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
|
||||||
|
|
||||||
$(BIN).static: $(OBJS)
|
$(BIN).static: $(OBJS) $(STATIC_LIBS)
|
||||||
@printf " [CCLD]\t\t$@\n"
|
@printf " [CCLD]\t\t$@\n"
|
||||||
${SILENT}$(CC) -static $^ $(CPPFLAGS) -L$(TOPDIR)/lib \
|
${SILENT}$(CC) -static $(OBJS) $(CPPFLAGS) -L$(TOPDIR)/lib \
|
||||||
$(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -o $@
|
$(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user