# Copyright (c)1997 Begemot Computer Associates. All rights reserved. # See the file COPYRIGHT for details of redistribution and use. # # $Id: Makefile.in,v 1.11 1999/10/27 18:44:05 hbb Exp $ # @SET_MAKE@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ mandir = @mandir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ INSTALL = @INSTALL@ INSTALL_PROG = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = $(top_srcdir)/config/mkinstalldirs CC = @CC@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ DEFS = @DEFS@ # manual section suffix. If you change this, you must also change the # section prefixes in the man files also. MSECT = l # source files SRC = panic.c xalloc.c xrealloc.c prstat.c strsave.c xstrsave.c warn.c \ readline.c error.c cstrc.c cstrd.c getfields.c strnlen.c bug.c \ inform.c strtrimsp.c _common_err.c rpoll.c frame.c verb.c xfree.c \ strnchr.c MSRC = intro Intro panic xalloc xrealloc prstat strsave xstrsave warn \ readline error geterrorcnt getwarncnt cstrc cstrd getfields getmfields \ setfields strnlen bug inform strtrimsp set_errmode rpoll poll_register \ poll_unregister poll_start_timer poll_stop_timer poll_dispatch \ frame frame_read frame_write framefd_read framefd_write verb xfree \ strnchr # library name LIB = libbegemot.la # include files to install HDR = begemot.h rpoll.h ############################################################ CFLAGS += -g -I$(srcdir) $(DEFS) -Wall -Wimplicit -Wformat -W -Wp,-MD,.deps/$(*F).d LDFLAGS += -g OBJ = $(SRC:.c=.lo) DEPS = $(SRC:%.c=.deps/%.d) SYSLIBS = @SYSLIBS@ all: $(LIB) $(LIB) : $(OBJ) libtool --mode=link $(CC) $(LDLAGS) -o $@ $(OBJ) -rpath $(exec_prefix)/lib -version-info `cat $(srcdir)/VERSION | sed 's/\./:/'` .SUFFIXES: .lo .c.lo: @test -d .deps || mkdir .deps >/dev/null 2>&1 libtool --mode=compile $(CC) -c $(CFLAGS) -o $@ $< install: $(MKINSTALLDIRS) $(libdir) $(MKINSTALLDIRS) $(includedir) $(MKINSTALLDIRS) $(mandir)/man$(MSECT) libtool --mode=install $(INSTALL_DATA) $(LIB) $(libdir) for file in $(HDR) ; do \ $(INSTALL_DATA) $(srcdir)/$$file $(includedir) ;\ done for file in $(MSRC) ; do \ $(INSTALL_DATA) $(srcdir)/$$file.man $(mandir)/man$(MSECT)/$$file.$(MSECT) ;\ done clean: -rm -f *.o *.lo *.la *.core core *~ .depend polltest stattest frame verbtest -rm -rf .libs .deps distclean: clean -rm -f config.cache config.log config.status Makefile libtool veryclean: distclean -rm -f configure aclocal.m4 tests: polltest stattest verbtest frame polltest: libtool --mode=link $(CC) -o polltest $(CFLAGS) -DTESTME $(srcdir)/rpoll.c libbegemot.la $(SYSLIBS) stattest: libtool --mode=link $(CC) -o stattest $(CFLAGS) -DTEST $(srcdir)/prstat.c libbegemot.la $(SYSLIBS) verbtest: libtool --mode=link $(CC) -o verbtest $(CFLAGS) -DTEST $(srcdir)/verb.c libbegemot.la $(SYSLIBS) frame: libtool --mode=link $(CC) -o frame $(CFLAGS) -DTEST $(srcdir)/frame.c libbegemot.la $(SYSLIBS) LIBTOOL_DEPS = @LIBTOOL_DEPS@ libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck -include $(DEPS) ################################################################# dist: @( set -e -x ; \ version=`cat VERSION` ; \ mkdir /tmp/libbegemot-$$version ; \ cp -Rp . /tmp/libbegemot-$$version ; \ cd /tmp/libbegemot-$$version ; \ find . -name CVS -type d | xargs rm -rf ; \ rm -f conf ; \ gmake veryclean ; \ autoconf ; \ cd /tmp ; \ tar cvf - libbegemot-$$version | gzip -v9 >libbegemot-$$version.tar.gz ) cvs-stat: cvs status `find . -type f | grep -v CVS` | grep Status | grep -v Up-to