home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / nrtable / Makefile < prev    next >
Encoding:
Makefile  |  1986-11-30  |  748 b   |  38 lines

  1. #    Makefile for table.c, method of producing a single terminal
  2. #    table for nroff under USG UNIX.
  3. #    Makefile written by Bruce Townsend (utcs!bnr-vpa!bruce)
  4. #    and Ian Darwin (utcs!darwin!ian)
  5. #    March 6, 1985.
  6.  
  7. TABFILES = tabXXX
  8. DESTDIR = /usr/lib/term
  9. LINTTAB = tabXXX
  10. DEFS =
  11. CFLAGS = $(DEFS) -O
  12. LDFLAGS = -s
  13. LFLAGS = $(DEFS)
  14.  
  15. $(TABFILES): dummy_file
  16.     $(MAKE) -$(MAKEFLAGS) table.o $@.o
  17.     cc $(LDFLAGS) table.o $@.o
  18.     ./a.out $@
  19.  
  20. # This dummy_file should never exist, it is a kludge to get Make to
  21. # always execute cc.
  22. dummy_file:
  23.     @rm -f dummy_file
  24.  
  25. all:    $(TABFILES)
  26.  
  27. install: $(TABFILES)
  28.     mv $(TABFILES) $(DESTDIR)
  29.  
  30. lint:    table.c
  31.     lint $(LFLAGS) table.c $(LINTTAB).c
  32.  
  33. elbat:    elbat.o
  34.     cc $(LDFLAGS) elbat.o -o elbat
  35.  
  36. clean:
  37.     rm -f a.out tab*.o elbat.o
  38.