home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / z / zsh220.zip / zsh2.2 / src / Makefile < prev    next >
Makefile  |  1992-05-11  |  921b  |  46 lines

  1. #! /bin/make -f
  2. # Makefile for zsh
  3. # generated by buildzsh
  4.  
  5. OBJS=builtin.o cond.o exec.o glob.o hist.o init.o jobs.o lex.o loop.o \
  6. math.o mem.o params.o parse.o subst.o table.o text.o utils.o watch.o \
  7. zle_bindings.o zle_hist.o zle_main.o zle_misc.o zle_move.o zle_refresh.o \
  8. zle_tricky.o zle_utils.o zle_vi.o zle_word.o
  9.  
  10. BINDIR=/usr/local/bin
  11. MANDIR=/usr/local/man/man1
  12.  
  13. # debugging flags
  14. #CFLAGS=-g -Wreturn-type -Wunused -Wpointer-arith -DQDEBUG
  15. #CC=gcc -traditional
  16.  
  17. CC=cc
  18. CFLAGS= -O
  19. LIBS= -ltermcap
  20.  
  21. ZSHPATH=zsh
  22.  
  23. .c.o:
  24.     $(CC) $(CFLAGS) -c $<
  25.  
  26. all: $(ZSHPATH)
  27.  
  28. $(ZSHPATH): $(OBJS)
  29.     $(CC) -o $(ZSHPATH) $(OBJS) $(LIBS) $(LFLAGS)
  30.     
  31. tags: /tmp
  32.     ctags *.[cy]
  33.  
  34. # I hate this next line
  35. $(OBJS): config.h zsh.h zle.h signals.h ztype.h funcs.h
  36.  
  37. clean:
  38.     rm -f *.o zsh core 
  39.  
  40. cleanall:
  41.     rm -f *.o zsh core Makefile signals.h config.h
  42.  
  43. install: zsh
  44.     install -s -m 755 zsh $(BINDIR)
  45.     install -m 444 ../man/man1/zsh.1 $(MANDIR)
  46.