groff before CVS: release 1.05
[s-roff.git] / driver / Makefile
blob62911bbbebcebc0d759641a27523b2d82bf93078
1 #Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
2 # Written by James Clark (jjc@jclark.uucp)
4 #This file is part of groff.
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.
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.
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.
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
30 .c.o:
31 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $<
33 all: libdriver.a
35 libdriver.a: $(OBJECTS)
36 $(AR) r libdriver.a $?
37 if test "$(RANLIB)" ; then $(RANLIB) libdriver.a ;fi
39 $(OBJECTS): printer.h driver.h
41 TAGS : $(SOURCES)
42 etags $(ETAGSFLAGS) $(SOURCES)
44 clean:
45 -rm -f *.o core libdriver.a
47 distclean: clean
48 -rm -f TAGS
50 realclean: distclean
52 install.bin:
53 install.nobin:
54 install: