From fd828e57682371471c6dacd11ac389bd745de14b Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sun, 25 Oct 2015 13:45:42 +0100 Subject: [PATCH] add config.o and version.o to libmh.a Now you can easy link against libmh.a with -lmh --- sbr/Makefile.in | 8 ++++---- uip/Makefile.in | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sbr/Makefile.in b/sbr/Makefile.in index 304b50b..6b4acf1 100644 --- a/sbr/Makefile.in +++ b/sbr/Makefile.in @@ -33,7 +33,7 @@ LINTFLAGS = @LINTFLAGS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) - +LOCALLIBS = ../config/version.o ../config/config.o .SUFFIXES: .SUFFIXES: .c .o @@ -100,12 +100,12 @@ dtimep.c: dtimep.lex pidstatus.o: sigmsg.h -libmh.a: $(OBJS) +libmh.a: $(OBJS) $(LOCALLIBS) rm -f $@ if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \ - $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \ + $(LIBTOOL) -static -c -o libmh.a $(OBJS) $(LOCALLIBS) ; \ else \ - ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT) 2>/dev/null` ; \ + ar cr libmh.a `$(LORDER) $(OBJS) $(LOCALLIBS) | $(TSORT) 2>/dev/null` ; \ $(RANLIB) libmh.a ; \ fi diff --git a/uip/Makefile.in b/uip/Makefile.in index 8fe7197..84f8535 100644 --- a/uip/Makefile.in +++ b/uip/Makefile.in @@ -22,7 +22,7 @@ INCLUDES = -I$(srcdir) -I$(top_srcdir) -I.. @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ -LOCALLIBS = ../config/version.o ../config/config.o ../sbr/libmh.a +LOCALLIBS = ../sbr/libmh.a LINKLIBS = $(LOCALLIBS) $(LIBS) LINT = @LINT@ -- 1.7.10.4