COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-
+LOCALLIBS = ../config/version.o ../config/config.o
.SUFFIXES:
.SUFFIXES: .c .o
OBJS = $(SRCS:.c=.o)
-# auxiliary files
-AUX = Makefile.in sigmsg.awk dtimep.lex
-
-# all files in this directory included in the distribution
-DIST = $(SRCS) $(AUX)
-
# ========= DEPENDENCIES FOR BUILDING ==========
# default target
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
Makefile: Makefile.in ../config.status
cd .. && ./config.status $(subdir)/$@
-distdir = ../`cat ../distname`/$(subdir)
-mmhdist: $(DIST)
- @echo "Copying distribution files in $(subdir)"
- @for file in $(DIST); do \
- cp -p $(srcdir)/$$file $(distdir); \
- done
-