1 # (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
2 # All rights reserved. The file named COPYRIGHT specifies the terms
3 # and conditions for redistribution.
6 # $Id: Makefile.in,v 1.1.1.1 2003/02/19 17:29:27 bbraun Exp $
8 # Based on Library makefile template: *Revision: 1.15 *
15 HEADERS = xlog.h impl.h slog.h filelog.h
16 SOURCES = xlog.c filelog.c slog.c util.c
17 OBJECTS = xlog.o filelog.o slog.o util.o
19 MANFILES = $(SRCDIR)/xlog.3
20 INCLUDEFILES = $(SRCDIR)/xlog.h
22 # The following variables are used by the 'install' entry and
23 # should be customized:
24 # LIBDIR: where the library will be placed
25 # INCUDEDIR: where the include files will be placed
26 # MANDIR: where the man pages will be placed
30 INCLUDEDIR = ../../include
42 # The following variables shouldn't need to be changed
44 CPP_FLAGS = $(CPP_DEFS) -I$(INCLUDEDIR)
46 CFLAGS = @CFLAGS@ $(CPP_FLAGS) $(CC_FLAGS)
49 FMODE = -m 640 # used by install
52 LIBNAME = lib$(NAME).a
57 make DEBUG=-O "DEFS=$(DEFS)" lib
58 $(INSTALL) $(FMODE) $(LIBNAME) $(LIBDIR)/optimized
60 $(LIBNAME): $(OBJECTS)
65 @if test "$(LIBDIR)" -a "$(INCLUDEDIR)" -a "$(MANDIR)" ;\
67 $(INSTALL) $(FMODE) $(LIBNAME) $(LIBDIR) ;\
68 $(RANLIB) $(LIBDIR)/$(LIBNAME) ;\
69 echo "Installed $(LIBNAME) to $(LIBDIR)" ;\
70 for i in $(INCLUDEFILES); do $(INSTALL) $(FMODE) $$i $(INCLUDEDIR) ; done ;\
71 echo Installed $(INCLUDEFILES) to $(INCLUDEDIR) ;\
72 for i in $(MANFILES) ; do $(INSTALL) $(FMODE) $$i $(MANDIR) ; done ;\
73 echo Installed $(MANFILES) to $(MANDIR) ;\
75 echo "You forgot to set one of the following variables: LIBDIR,INCLUDEDIR,MANDIR" ;\
79 a=`pwd` ; cd $(INCLUDEDIR) ;\
80 if test $$a != `pwd` ; then rm -f $(INCLUDEFILES) ; fi
81 a=`pwd` ; cd $(LIBDIR) ;\
82 if test $$a != `pwd` ; then rm -f $(LIBNAME) ; fi
83 a=`pwd` ; cd $(MANDIR) ;\
84 if test $$a != `pwd` ; then rm -f $(MANFILES) ; fi
87 rm -f $(OBJECTS) $(LIBNAME) core
91 spotless: clean uninstall
97 # PUT HERE THE RULES TO MAKE THE OBJECT FILES
100 filelog.o: xlog.h impl.h filelog.h
101 slog.o: xlog.h impl.h slog.h