diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 9b32b062..045defea 100644 --- a/Makefile.in +++ b/Makefile.in @@ -25,6 +25,7 @@ INSTALL_DATA=@INSTALL_DATA@ client=$(addprefix $(exedir)/,@CLIENT@) daemon=$(exedir)/bird +static_lib=$(exedir)/libbird.a protocols=@protocols@ prefix=@prefix@ @@ -70,6 +71,7 @@ all: daemon cli daemon: $(daemon) cli: $(client) +static-lib: $(static_lib) $(daemon): LIBS += $(DAEMON_LIBS) @@ -82,7 +84,7 @@ cf-local = $(conf-y-targets): $(s)config.Y src-o-files = $(patsubst %.c,$(o)%.o,$(src)) tests-target-files = $(patsubst %.c,$(o)%,$(tests_src)) -all-daemon = $(daemon): $(obj) +all-daemon = $(static_lib): $(obj) all-client = $(client): $(obj) s = $(dir $(lastword $(MAKEFILE_LIST))) @@ -140,6 +142,11 @@ $(client) $(daemon): $(E)echo LD $(LDFLAGS) -o $@ $^ $(LIBS) $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) +$(static_lib): + $(E)echo AR $(ARFLAGS) $@ $^ + $(Q)$(AR) $(ARFLAGS) $@ $^ + $(Q)$(RANLIB) $@ + $(objdir)/sysdep/paths.h: Makefile echo >$@ "/* Generated by Makefile, don't edit manually! */" echo >>$@ "#define PATH_CONFIG_FILE \"@CONFIG_FILE@\"" |