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 *
17 SOURCES = pset.c ops.c
18 OBJECTS = pset.o ops.o
20 MANFILES = $(SRCDIR)/pset.3 $(SRCDIR)/psi.3
21 INCLUDEFILES = $(SRCDIR)/pset.h
23 # The following variables are used by the 'install' entry and
24 # should be customized:
25 # LIBDIR: where the library will be placed
26 # INCUDEDIR: where the include files will be placed
27 # MANDIR: where the man pages will be placed
30 INCLUDEDIR = ../../include
37 # The following variables shouldn't need to be changed
39 CPP_FLAGS = $(CPP_DEFS) -I$(INCLUDEDIR)
41 CFLAGS = @CFLAGS@ $(CPP_FLAGS) $(CC_FLAGS)
44 FMODE = -m 640 # used by install
47 LIBNAME = lib$(NAME).a
53 mv $(LIBNAME) $(LIBDIR)/optimized
55 $(LIBNAME): $(OBJECTS)
60 @if test "$(LIBDIR)" -a "$(INCLUDEDIR)" -a "$(MANDIR)" ;\
62 $(INSTALL) $(FMODE) $(LIBNAME) $(LIBDIR) ;\
63 $(RANLIB) $(LIBDIR)/$(LIBNAME) ;\
64 echo "Installed $(LIBNAME) to $(LIBDIR)" ;\
65 for i in $(INCLUDEFILES); do $(INSTALL) $(FMODE) $$i $(INCLUDEDIR) ; done ;\
66 echo Installed $(INCLUDEFILES) to $(INCLUDEDIR) ;\
67 for i in $(MANFILES) ; do $(INSTALL) $(FMODE) $$i $(MANDIR) ; done ;\
68 echo Installed $(MANFILES) to $(MANDIR) ;\
70 echo "You forgot to set one of the following variables: LIBDIR,INCLUDEDIR,MANDIR" ;\
74 a=`pwd` ; cd $(INCLUDEDIR) ;\
75 if test $$a != `pwd` ; then rm -f $(INCLUDEFILES) ; fi
76 a=`pwd` ; cd $(LIBDIR) ;\
77 if test $$a != `pwd` ; then rm -f $(LIBNAME) ; fi
78 a=`pwd` ; cd $(MANDIR) ;\
79 if test $$a != `pwd` ; then rm -f $(MANFILES) ; fi
82 rm -f $(OBJECTS) $(LIBNAME) core
89 spotless: clean uninstall
92 # PUT HERE THE RULES TO MAKE THE OBJECT FILES