home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume11 / watcher / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1987-09-27  |  891 b   |  40 lines

  1. #
  2. # makefile for watcher
  3. #
  4. # SYS should be either BSD or SYSV
  5. SYS = BSD
  6.  
  7. OBJS = baderr.o check_item.o checkline.o do_args.o doit.o externs.o\
  8.     find_of.o find_pre_cmd.o find_pre_val.o get_col_fld.o\
  9.     get_rel_fld.o getargv.o init.o init_sigs.o line_to_vec.o main.o\
  10.     open_cf.o open_hf.o pp.o pp_change.o pp_out.o read_hist.o\
  11.     save_key.o y.tab.o yyerror.o yylex.o
  12. CFLAGS = -O -D$(SYS)
  13.  
  14. DIST = Makefile Docs Support Ideas
  15.  
  16. watcher: $(OBJS)
  17.     cc $(CFLAGS) -o watcher $(OBJS)
  18.  
  19. clean:
  20.     rm -f a.out core watcher *.o y.tab.c y.tab.h y.output Make.out
  21.  
  22. lint:
  23.     lint -x *.c > Lint.out
  24.  
  25. shar:
  26.     shar README *.c *.h *.y $(DIST) > Watcher.shar
  27.  
  28. # Two shar files are made because one is too large for the mailers with
  29. # a 64K limit.
  30. dist:
  31.     shar README *.c > Watcher.shar1
  32.     shar *.h *.y $(DIST) > Watcher.shar2
  33.  
  34. y.tab.c y.tab.h: control.y
  35.     yacc -d control.y
  36.  
  37. y.tab.o: y.tab.c
  38. yylex.o: y.tab.h
  39. $(OBJS): defs.h
  40.