home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / text / troff / dos / driver / djgpp.mak
Encoding:
Makefile  |  1992-04-17  |  1.3 KB  |  56 lines

  1. #Copyright (C) 1989, 1990, 1991 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=gcc -x c++
  21. CFLAGS=-O2
  22. AR=ar
  23. RANLIB=ar rvs
  24. INCLUDES=-I../lib
  25. DEFINES=
  26. MALLOC=#malloc.o
  27. MALLOCFLAGS=
  28. OBJECTS=input.o printer.o
  29. SOURCES=input.c printer.c printer.h driver.h
  30.  
  31. .c.o:
  32.     $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
  33.  
  34. all: libdriver.a
  35.  
  36. libdriver.a: $(OBJECTS)
  37.     $(AR) r libdriver.a $?
  38.     $(RANLIB) libdriver.a
  39.  
  40. $(OBJECTS):  printer.h driver.h
  41.  
  42. TAGS : $(SOURCES)
  43.     etags $(ETAGSFLAGS) $(SOURCES)
  44.  
  45. clean:
  46.     -rm -f *.o core libdriver.a
  47.  
  48. distclean: clean
  49.     -rm -f TAGS
  50.  
  51. realclean: distclean
  52.  
  53. install.bin:
  54. install.nobin:
  55. install:
  56.