home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume27 / ytalk-3.0 / patch01 / Makefile < prev    next >
Makefile  |  1993-08-24  |  3KB  |  102 lines

  1. #### Imakefile for YTalk version 3.0 ####
  2. #
  3. #               NOTICE
  4. #
  5. # Copyright (c) 1990,1992,1993 Britt Yenne.  All rights reserved.
  6. # This software is provided AS-IS.  The author gives no warranty,
  7. # real or assumed, and takes no responsibility whatsoever for any 
  8. # use or misuse of this software, or any damage created by its use
  9. # or misuse.
  10. # This software may be freely copied and distributed provided that
  11. # no part of this NOTICE is deleted or edited in any manner.
  12.  
  13. ###################################
  14. ## CONFIGURATION  (The Fun Part) ##
  15. ###################################
  16. #
  17. # If your machine does not support TERMIOS (example: any NeXT running
  18. # NeXTStep up to and including version 3.1), then uncomment the following
  19. # line.
  20.  
  21. #TDEFS = -DUSE_SGTTY
  22.  
  23. #
  24. # If you are running an older Sun OS using YP (now known as NIS), you might
  25. # need to uncomment the next line if ytalk asks you "Who are you?"
  26.  
  27. #SLIBS = -lsun
  28.  
  29. #
  30. # If you are on a sun running solaris 2.* you might need to uncomment the 
  31. # following line.
  32.  
  33. #SLIBS = -lnsl -lsocket
  34.  
  35. #
  36. # If your machine has a 64-bit architecture or uses 64-bit 'long's, then you
  37. # will need to uncomment the following line.
  38.  
  39. #BDEFS = -DY64BIT
  40.  
  41. #
  42. # If you have (or want) a system-wide .ytalkrc file, uncomment the next
  43. # line and set it to the correct pathname.  The backslashes must remain
  44. # before each double-quote.
  45.  
  46. #RCDEF = -DSYSTEM_YTALKRC=\"/usr/local/etc/ytalkrc\"
  47.  
  48. #
  49. # If you plan to install ytalk on your system, you may want to modify
  50. # the following lines.  Y_BINDIR is where the binary will be placed.
  51. # Y_MANDIR is where the manpage will be placed.
  52.  
  53. Y_BINDIR = /usr/local/bin
  54. Y_MANDIR = /usr/local/man/man1
  55.  
  56. ############################################################
  57. ## Past this point, you shouldn't need to modify anything ##
  58. ############################################################
  59. LIB = -lcurses -ltermcap $(SLIBS) $(XLIB)
  60. CFLAGS = -I/usr/local/include $(TDEFS) $(BDEFS) $(RCDEF)
  61. LDFLAGS = $(LDOPTIONS)
  62. OBJ = main.o term.o user.o fd.o comm.o menu.o socket.o rc.o exec.o cwin.o \
  63.       xwin.o
  64. PRG = ytalk
  65.  
  66. all:    $(PRG) ytalk.cat
  67.  
  68. $(PRG):    $(OBJ)
  69.     $(CC) $(LDFLAGS) -o $(PRG) $(OBJ) $(LIB)
  70.     
  71. ytalk.cat:    ytalk.1
  72.     nroff -man ytalk.1 > ytalk.cat
  73.  
  74. start:    Imakefile
  75.     sed 's/^DEFINES.*X11/CFLAGS =/' < Imakefile > Makefile
  76.  
  77. shar:
  78.     make start
  79.     shar -i Manifest -o ytalk-3.0.shar -t "== Now read the README file =="
  80.  
  81. clean::
  82.     -rm -f $(OBJ)
  83.  
  84. install:: $(PRG)
  85.     /bin/cp ytalk $(Y_BINDIR)
  86.     /bin/cp ytalk.1 $(Y_MANDIR)
  87.     @echo "Ytalk installation complete."
  88.  
  89. $(OBJ):        header.h
  90. main.o:        menu.h
  91. term.o:        cwin.h xwin.h menu.h
  92. fd.o:        menu.h
  93. comm.o:        socket.h menu.h
  94. menu.o:        menu.h
  95. socket.o:    socket.h
  96. cwin.o:        cwin.h
  97. xwin.o:        xwin.h
  98.  
  99.