home *** CD-ROM | disk | FTP | other *** search
/ pc.louisiana.edu/pub/unix/ / Louisiana_UNIX.tar / Louisiana_UNIX / date+.zoo / Makefile < prev    next >
Makefile  |  1991-10-15  |  2KB  |  76 lines

  1. # Makefile for date+ by jpd@usl.edu
  2.  
  3. # This is where the install step puts it.
  4. EXDIR=/usr/local/bin
  5.  
  6. # This is where the man page goes.
  7. #MANDIR=/usr/local/src/man/man1    # reno
  8. #MANEXT=1            # reno
  9. MANDIR=/usr/man/manl
  10. MANEXT=l
  11. MANMODE=644
  12.  
  13. # flags for lint
  14. LINTFLAGS=-abchxv
  15.  
  16. # IF you have problems w/ your yacc try bison, Berkeley yacc, or
  17. # some other yacc. Some systems don't allow you to
  18. # increase the number of terminals (mostly AT&T), SCO's does though.
  19. YACC=yacc
  20. #YACC=bison -y
  21.  
  22. # Command to use to make temporary copies of some source files.
  23. LN=ln
  24. #LN=ln -s
  25. #LN=cp
  26.  
  27. #### SYSTEM DEFINES ####
  28.  
  29. # Use this for BSD SunOS ... define BSD4_2 if needed
  30. CFLAGS= -O     #-O or -g
  31. LDFLAGS=    # -lg might help if -g used in CFLAGS
  32. LIB=
  33.  
  34. # Use this for SunOS 4.X if you have the System V package installed.
  35. #CC=/usr/5bin/cc
  36. #CFLAGS= -O -DUSG
  37. #LDFLAGS=
  38. #LIB=
  39.  
  40. # All of the source files
  41. SRC=Makefile date+.c getdate.y
  42.  
  43. # The objects
  44. OBJS=date+.o getdate.o
  45.  
  46. all:    date+
  47.  
  48. date+:    $(OBJS)
  49.     $(CC) ${LDFLAGS} ${OBJS} ${LIB} -o date+
  50.  
  51. getdate.c:    getdate.y
  52.     $(YACC) getdate.y; mv y.tab.c getdate.c
  53.     @echo "8 shift/reduce conflicts are expected."
  54.  
  55. # Objects
  56.  
  57. #help.o: help.c sc.h
  58. #    $(CC) ${CFLAGS} ${CRYPT} -c help.c
  59.  
  60. #getdate.o:    getdate.c
  61. #    $(CC) ${CFLAGS} -c getdate.c
  62.  
  63. # other stuff
  64.  
  65. clean:
  66.     rm -f *.o date+ debug core getdate.c
  67.  
  68. install: date+ $(MANDIR)/date+.$(MANEXT)
  69.     cp date+ $(EXDIR)
  70.     strip $(EXDIR)/date+
  71.  
  72. $(MANDIR)/date+.$(MANEXT):
  73.     cp date+.1 $(MANDIR)/date+.$(MANEXT)
  74.     chmod $(MANMODE) $(MANDIR)/date+.$(MANEXT)
  75.  
  76.