home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / guile-ii.src / guile-ii / guile-src / goonix / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-07-03  |  2.8 KB  |  121 lines

  1. # Makefile for libgoonix
  2. # Copyright (C) 1994 Free Software Foundation, Inc.
  3. # This file is part of GNU Goonix
  4. # GNU Goonix is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # GNU Goonix is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU SED; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. srcdir = @srcdir@
  19. VPATH = @srcdir@
  20. prefix = @prefix@
  21. exec_prefix = $(prefix)
  22. bindir = $(exec_prefix)/bin
  23. libdir = $(exec_prefix)/lib
  24. includedir = $(prefix)/include
  25. infodir = $(prefix)/info
  26.  
  27. #### Start of system configuration section. ####
  28.  
  29. CC = @CC@
  30. INSTALL = @INSTALL@
  31. DEFS = @DEFS@
  32. CFLAGS = -g -I. -I$(srcdir)/../libguile -I../libguile
  33. AR = ar
  34. AR_FLAGS = rc
  35. RANLIB = @RANLIB@
  36. source=ioext.c posix.c unix.c
  37. xfiles=ioext.x posix.x unix.x
  38. headers=ioext.h posix.h unix.h
  39. ancillery=configure.in Makefile.in configure \
  40.       COPYING INSTALL ChangeLog \
  41.       PLUGIN
  42. distfiles=$(source) $(headers) $(ancillery)
  43. libobjs=ioext.o posix.o unix.o 
  44.  
  45. .SUFFIXES:
  46. .SUFFIXES: .o .c .h .ps .dvi .info .texinfo .scm .cd .x
  47.  
  48. .c.x:
  49.     $(CC) $(CFLAGS) -DSCM_MAGIC_SNARFER -E $< | grep "^%%%" | sed -e "s/^%%%//" > $@ ;
  50.  
  51. .c.o:
  52.     $(CC) -c $(CFLAGS) $(DEFS) -I$(srcdir) $<
  53.  
  54. all: libgoonix.a
  55.  
  56. install: all
  57.     test -d $(libdir) || mkdir $(libdir)
  58.     test -d $(includedir) || mkdir $(includedir)
  59.     $(INSTALL) libgoonix.a $(libdir)/libgoonix.a
  60.     $(RANLIB) $(libdir)/libgoonix.a
  61.     $(INSTALL) $(srcdir)/posix.h $(includedir)/posix.h
  62.     $(INSTALL) $(srcdir)/ioext.h $(includedir)/ioext.h
  63.     $(INSTALL) $(srcdir)/unix.h $(includedir)/unix.h
  64.  
  65.  
  66. uninstall:
  67.     -rm -f $(libdir)/libgoonix.a
  68.     -rm -f $(includedir)/posix.h
  69.     -rm -f $(includedir)/ioext.h
  70.     -rm -f $(includedir)/unix.h
  71.  
  72. clean:
  73.     -rm -f $(libobjs) $(xfiles) libgoonix.a
  74.  
  75. distclean: clean
  76.     -rm Makefile config.status
  77.  
  78. mostlyclean: clean
  79.  
  80. realclean: distclean
  81.  
  82. TAGS:
  83.     etags $(source)
  84.  
  85. info:
  86.  
  87. install-info:
  88.  
  89. clean-info:
  90.  
  91. dvi:
  92.  
  93. check:
  94.  
  95. SUBDIR=.
  96. manifest:
  97.     for file in $(distfiles); do echo $(SUBDIR)/$$file; done
  98.  
  99. dist:    $(distfiles)
  100.     echo goonix-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q goonix.c` > .fname
  101.     rm -rf `cat .fname`
  102.     mkdir `cat .fname`
  103.     ln $(distfiles) `cat .fname`
  104.     tar chzf `cat .fname`.tar.gz `cat .fname`
  105.     rm -rf `cat .fname` .fname
  106.  
  107.  
  108. libgoonix.a: $(libobjs)
  109.     rm -f libgoonix.a
  110.     $(AR) $(AR_FLAGS) libgoonix.a $(libobjs)
  111.     $(RANLIB) libgoonix.a
  112.  
  113. ioext.o: ioext.c ioext.h ioext.x
  114. posix.o: posix.c posix.h posix.x
  115. unix.o: unix.c unix.h unix.x
  116.  
  117.