home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / ARCHIVERS / lha208src.lzh / LHA / SRC / Makefile.sco < prev    next >
Makefile  |  1994-02-15  |  3KB  |  94 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. #  Your include file '<sys/time.h>' includes 'struct timeval', define this.
  43. #    -DSYSTIME_HAS_TIMEVAL        Added by Bob Friesenhahn 4/23/92.
  44. #
  45. #-----------------------------------------------------------------------
  46. # FILE I/O STUFF
  47. #  Your machine has no ftruncate system-call, define this.
  48. #    -DNOFTRUNCATE
  49. #-----------------------------------------------------------------------
  50. # STRING STUFF
  51. #  Your machine has no strdup(), define this.
  52. #     -DNOSTRDUP
  53. #-----------------------------------------------------------------------
  54.  
  55. LHOBJS        = lharc.o lhadd.o lhlist.o lhext.o header.o
  56. HUFOBJS        = append.o crcio.o dhuf.o extract.o huf.o larc.o maketbl.o \
  57.           maketree.o shuf.o slide.o util.o
  58.  
  59. # missing library objects.
  60. #    memset.o
  61. LIBRARYOBJS    = memmove.o strucmp.o patmatch.o strdup.o rename.o
  62.  
  63. OPTIMIZE        = -O # -g -fstrength-reduce -fomit-frame-pointer
  64. SWITCHIES       = -DSYSTIME_HAS_TIMEVAL -DSYSV_SYSTEM_DIR -DUSG \
  65.     -DSYSTIME_HAS_NO_TM -DNOFTRUNCATE -DNOBSTRING -DNOINDEX -DMKTIME
  66. OBJS        = $(LHOBJS) $(HUFOBJS) $(LIBRARYOBJS)
  67.  
  68. CC              = cc
  69. #CC             = gcc -traditional
  70. CFLAGS        = $(OPTIMIZE) $(SWITCHIES)
  71.  
  72. DISTDIR        = /usr/local/bin
  73.  
  74. lha     : $(OBJS)
  75.     $(CC) -o $@ $(OBJS) #-lbsd
  76. #    aout2exe lharc
  77.  
  78. lharc.o lhadd.o lhext.o lhlist.o header.o append.o slide.o extract.o : lharc.h
  79.  
  80. $(HUFOBJS) : slidehuf.h
  81. crcio.o extract.o slide.o : intrface.h
  82.  
  83. lharc.man : lharc.n
  84.     jnroff -man lharc.n >lharc.man
  85.  
  86. clean:
  87.     rm -f core lha $(OBJS)
  88.  
  89. moreclean:
  90.     rm -f core *.o lha.tar lha.tar.Z *~ \#*
  91.  
  92. install:
  93.     install -s lha $(DISTDIR)/lha
  94.