home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / groff / libdriver / Makefile.gnu < prev    next >
Encoding:
Makefile  |  1991-04-30  |  1.3 KB  |  55 lines

  1. #Copyright (C) 1989, 1990 Free Software Foundation, Inc.
  2. #     Written by James Clark (jjc@jclark.uucp)
  3. #
  4. #This file is part of groff.
  5. #
  6. #groff is free software; you can redistribute it and/or modify it under
  7. #the terms of the GNU General Public License as published by the Free
  8. #Software Foundation; either version 1, or (at your option) any later
  9. #version.
  10. #
  11. #groff is distributed in the hope that it will be useful, but WITHOUT ANY
  12. #WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14. #for more details.
  15. #
  16. #You should have received a copy of the GNU General Public License along
  17. #with groff; see the file LICENSE.  If not, write to the Free Software
  18. #Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. CC=g++
  21. AR=ar
  22. RANLIB=/bin/ranlib
  23. INCLUDES=-I../lib
  24. DEFINES=
  25. MALLOC=malloc.o
  26. MALLOCFLAGS=
  27. OBJECTS=input.o printer.o
  28. SOURCES=input.c printer.c printer.h driver.h
  29.  
  30. .c.o:
  31.     $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
  32.  
  33. all: libdriver.a
  34.  
  35. libdriver.a: $(OBJECTS)
  36.     $(AR) r libdriver.a $?
  37.     if test "$(RANLIB)" ; then $(RANLIB) libdriver.a ;fi
  38.  
  39. $(OBJECTS):  printer.h driver.h
  40.  
  41. TAGS : $(SOURCES)
  42.     etags $(ETAGSFLAGS) $(SOURCES)
  43.  
  44. clean:
  45.     -rm -f *.o core libdriver.a
  46.  
  47. distclean: clean
  48.     -rm -f TAGS
  49.  
  50. realclean: distclean
  51.  
  52. install.bin:
  53. install.nobin:
  54. install:
  55.