Now you can easy link against libmh.a with -lmh
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-
+LOCALLIBS = ../config/version.o ../config/config.o
.SUFFIXES:
.SUFFIXES: .c .o
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
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-LOCALLIBS = ../config/version.o ../config/config.o ../sbr/libmh.a
+LOCALLIBS = ../sbr/libmh.a
LINKLIBS = $(LOCALLIBS) $(LIBS)
LINT = @LINT@