home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / ARCHIVERS / lhasrc.lzh / makefile.lin < prev    next >
Makefile  |  1992-05-10  |  3KB  |  90 lines

  1. # Makefile for LHarc UNIX Archiver Driver
  2. #        Copyright(C) MCMLXXXIX  Yooichi.Tagawa
  3. # V0.01  Alpha Version                1989.05.28  Y.Tagawa
  4. # V0.02  Alpha Version R2            1989.05.29  Y.Tagawa
  5. # V0.03  Release #3  Beta Version        1989.07.02  Y.Tagawa
  6. # V0.03b Modified                1989.07.13  Y.Tagawa
  7. # V1.00  Fixed                    1989.09.19  Y.Tagawa
  8. #
  9. # for OSK
  10. # V1.08                        1990.10.09  Sakura Tomozou
  11. # V2.00    + lzhuf4/5                1990.10.26  
  12. #
  13. # LHa for UNIX
  14. # V0.01  Alpha Version                1991.10.17  Masaru Oki
  15. # V0.02  Alpha Version Rel.2            1991.11.26  Masaru Oki
  16. # V0.03  Beta Version                1991.12.03  Masaru Oki
  17. # V0.04  Beta Version  Rel.2            1992.01.17  Masaru Oki
  18.  
  19. #-----------------------------------------------------------------------
  20. # CFLAGS macro definitions...
  21. #-----------------------------------------------------------------------
  22. # DIRECTORY ACCESS STUFF
  23. #  The default (no need swtich) is your machine has
  24. #  opendir(),readdir(),closedir() library and 'direct' structure used.
  25. #  If your machine has no opendir (), readdir (), closedir ()
  26. #    -DNONSYSTEM_DIR_LIBRARY
  27. #  and add lhdir.o into OBJS macro (see bellow)
  28. #  If your machine are 'dirent' (not 'direct') structure used,
  29. #    -DSYSV_SYSTEM_DIR
  30. #  Otherwise "Give up!"
  31. #    -DNODIRECTORY
  32. #
  33. #-----------------------------------------------------------------------
  34. # MEMORY ACCESS STUFF
  35. #  Your machine has no BSTRING library (bcmp,bcopy,bzero).
  36. #    -DNOBSTRING
  37. #
  38. #-----------------------------------------------------------------------
  39. # TIME STUFF
  40. #  Your include file '<sys/time.h>' has no 'struct tm',  define this.
  41. #    -DSYSTIME_HAS_NO_TM
  42. #
  43. #-----------------------------------------------------------------------
  44. # FILE I/O STUFF
  45. #  Your machine has no ftruncate system-call, define this.
  46. #    -DNOFTRUNCATE
  47. #-----------------------------------------------------------------------
  48. # STRING STUFF
  49. #  Your machine has no strdup(), define this.
  50. #     -DNOSTRDUP
  51. #-----------------------------------------------------------------------
  52.  
  53. LHOBJS        = lharc.o lhadd.o lhlist.o lhext.o header.o
  54. HUFOBJS        = append.o crcio.o dhuf.o extract.o huf.o larc.o maketbl.o \
  55.           maketree.o shuf.o slide.o util.o
  56.  
  57. # missing library objects.
  58. #    memset.o
  59. LIBRARYOBJS    = memmove.o strucmp.o patmatch.o strdup.o rename.o
  60.  
  61. OPTIMIZE    = -g # -O -fstrength-reduce -fomit-frame-pointer
  62. SWITCHIES    = -DNOINDEX -DNOFTRUNCATE -DNOSTRDUP -DNOBSTRING -DSYSV_SYSTEM_DIR -DEUC # -DNO_VOID
  63. OBJS        = $(LHOBJS) $(HUFOBJS) $(LIBRARYOBJS)
  64.  
  65. #CC        = cc
  66. CC        = gcc # -traditional
  67. CFLAGS        = $(OPTIMIZE) $(SWITCHIES)
  68.  
  69. DISTDIR        = /usr/local/bin
  70.  
  71. lha    : $(OBJS)
  72.     $(CC) -o $@ $(OBJS) $(LDFLAGS)
  73.  
  74. lharc.o lhadd.o lhext.o lhlist.o header.o append.o slide.o extract.o : lharc.h
  75.  
  76. $(HUFOBJS) : slidehuf.h
  77. crcio.o extract.o slide.o : intrface.h
  78.  
  79. lharc.man : lharc.n
  80.     jnroff -man lharc.n >lharc.man
  81.  
  82. clean:
  83.     rm -f core lha $(OBJS)
  84.  
  85. moreclean:
  86.     rm -f core *.o lha.tar lha.tar.Z *~ \#*
  87.  
  88. install:
  89.     install -s lha $(DISTDIR)/lha
  90.