home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games / INFESPGAMES.mdf / os2 / backgam / source / makefile < prev    next >
Encoding:
Makefile  |  1994-12-10  |  4.1 KB  |  128 lines

  1. # TinyFugue Makefile
  2.  
  3. #FLAGS = -DHARDCODE -DMAILDELAY=6
  4. FLAGS = -DTERMCAP -DSYSVTTY -O2
  5. # CONNECT = -DCONNECT_BSD
  6.  
  7. ### If your version of Make does not import the environment, define HOME here.
  8. # HOME=
  9.  
  10. ### Single-user default file locations and settings
  11.  
  12. EXE       = tf
  13. TFCONNECT = tf.con
  14. TFLIBRARY = tf.lib
  15. HELPFILE  = tf.hlp
  16.  
  17. ## If you plan to let others use your copy of tf, use the umask 22 line.
  18. # UMASK   = umask 22;
  19. UMASK     =
  20.  
  21. # The next 2 macros may be left blank, if you don't want the man page.
  22. # MANTYPE is either "nroff" or "cat" (vt100).
  23. MANTYPE   = 
  24. MANPAGE   = 
  25.  
  26. ### GNU C
  27. CC = gcc
  28. GCCFLAGS = -ansi
  29.  
  30. LIBRARIES = -ltermcap -lsocket
  31. MAKE = make
  32.  
  33. #################################################################
  34. #### You should not need to modify anything below this point ####
  35. #################################################################
  36.  
  37. FILES      = -DTFLIBRARY=\"$(TFLIBRARY)\" -DTFCONNECT=\"$(TFCONNECT)\"
  38. CFLAGS     = $(FLAGS) $(GCCFLAGS) $(CCFLAGS) $(FILES) $(CONNECT)
  39. MAKEFILE   = Makefile
  40. SOURCE     = main.c world.c util.c socket.c keyboard.c macro.c \
  41.              command1.c command2.c special.c history.c process.c output.c \
  42.              expand.c dstring.c help.c signal.c fibsboard.c
  43. OBJECTS    = main.o world.o util.o socket.o keyboard.o macro.o \
  44.              command1.o command2.o special.o history.o process.o output.o \
  45.              expand.o dstring.o help.o signal.o fibsboard.o
  46. CONSOURCE  = tf.connect.c
  47.  
  48.  
  49. all:
  50.     @echo 'Please read the INSTALLATION file before compiling.'
  51.  
  52. tf:    $(OBJECTS)
  53.     $(CC) $(CFLAGS) -o tf.exe $(OBJECTS) $(LIBRARIES)
  54.  
  55. install:    tf
  56.     @echo
  57.     @echo '**** TinyFugue installation complete.'
  58.  
  59. uninstall:
  60.     rm -f $(EXE) $(TFCONNECT) $(TFLIBRARY) $(MANPAGE)
  61.     rm -f $(HELPFILE) $(HELPFILE).index
  62.  
  63. clean:
  64.     rm -f $(OBJECTS) makehelp
  65.  
  66.  
  67. command1.o: command1.c tf.h dstring.h util.h history.h world.h socket.h \
  68.             output.h macro.h help.h process.h keyboard.h \
  69.             prototype.h $(MAKEFILE)
  70.  
  71. command2.o: command2.c tf.h dstring.h util.h macro.h keyboard.h output.h \
  72.             command1.h history.h world.h socket.h \
  73.             prototype.h $(MAKEFILE)
  74.  
  75. dstring.o: dstring.c tf.h dstring.h util.h \
  76.             prototype.h $(MAKEFILE)
  77.  
  78. expand.o: expand.c tf.h dstring.h util.h macro.h socket.h command1.h output.h \
  79.             prototype.h $(MAKEFILE)
  80.  
  81. help.o: help.c tf.h dstring.h util.h output.h \
  82.             prototype.h $(MAKEFILE)
  83.  
  84. history.o: history.c tf.h dstring.h util.h history.h world.h socket.h macro.h \
  85.            output.h \
  86.             prototype.h $(MAKEFILE)
  87.  
  88. keyboard.o: keyboard.c tf.h dstring.h util.h macro.h output.h history.h \
  89.            socket.h expand.h \
  90.             prototype.h $(MAKEFILE)
  91.  
  92. macro.o: macro.c tf.h dstring.h util.h history.h world.h socket.h macro.h \
  93.            keyboard.h output.h expand.h command1.h \
  94.             prototype.h $(MAKEFILE)
  95.  
  96. main.o: main.c tf.h dstring.h util.h history.h world.h socket.h macro.h \
  97.            output.h signal.h keyboard.h command1.h command2.h \
  98.             prototype.h $(MAKEFILE)
  99.  
  100. output.o: output.c tf.h dstring.h util.h history.h world.h socket.h macro.h \
  101.            output.h \
  102.             prototype.h $(MAKEFILE)
  103.  
  104. process.o: process.c tf.h dstring.h util.h history.h world.h socket.h macro.h \
  105.            expand.h output.h \
  106.             prototype.h $(MAKEFILE)
  107.  
  108. signal.o: signal.c tf.h dstring.h util.h history.h world.h process.h socket.h \
  109.            keyboard.h output.h \
  110.             prototype.h $(MAKEFILE)
  111.  
  112. socket.o: socket.c tf.h dstring.h util.h history.h world.h socket.h output.h \
  113.            process.h macro.h keyboard.h command1.h command2.h special.h \
  114.            signal.h tf.connect.h opensock.c \
  115.             prototype.h $(MAKEFILE)
  116.  
  117. special.o: special.c tf.h dstring.h util.h history.h world.h socket.h macro.h \
  118.            output.h \
  119.             prototype.h $(MAKEFILE)
  120.  
  121. util.o: util.c tf.h dstring.h util.h output.h macro.h socket.h keyboard.h \
  122.             prototype.h $(MAKEFILE)
  123.  
  124. world.o: world.c tf.h dstring.h util.h history.h world.h output.h macro.h \
  125.            process.h \
  126.             prototype.h $(MAKEFILE)
  127.  
  128.