home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / archiver / rblharc / makefile < prev    next >
Makefile  |  1993-07-08  |  3KB  |  113 lines

  1. # Makefile for LHArc UNIX
  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.  
  7. #-----------------------------------------------------------------------
  8. # DIRECTORY ACCESS DEPENDENDS...
  9. #  The default (no need swtich) is your machine has
  10. #  opendir(),readdir(),closedir() library and 'direct' structure used.
  11. #  If your machine has no opendir (), readdir (), closedir ()
  12. #    -DNONSYSTEM_DIR_LIBRARY
  13. #  and add lhdir.o into OBJS macro (see bellow)
  14. #  If your machine are 'dirent' (not 'direct') structure used,
  15. #    -DSYSV_SYSTEM_DIR
  16. #  Otherwise "Give up!"
  17. #    -DNODIRECTORY
  18. #
  19. #-----------------------------------------------------------------------
  20. # MEMORY ACCESS STUFF
  21. #  Your machine has no BSTRING library (bcmp,bcopy,bzero).
  22. #    -DNOBSTRING
  23. #
  24. #-----------------------------------------------------------------------
  25. # TIME STUFF
  26. #  Your include file '<sys/time.h>' has no 'struct tm',  define this.
  27. #    -DSYSTIME_HAS_NO_TM
  28. #
  29.  
  30. # most of 4.[23]BSD
  31. #    - vax 4.[23]BSD, SONY NEWS 4.[23]BSD etc.
  32. SWITCHIES    = -DTSTFLG
  33. OBJS        = lharc.o lzhuf.o lhio.o
  34.  
  35. # brain damaged 4.[23]BSD clones (shit like uglix, hpux and other brain death)
  36. #        (dont try -O3 or -O4 on mips-uglix, it blows up the compiler)
  37. #SWITCHIES    = -DTSTFLG -Dultrix
  38. #OBJS        = lharc.o lzhuf.o lhio.o
  39.  
  40. # sample of System-V
  41. #    - NEC EWS4800
  42. #SWITCHIES    = -DNONSYSTEM_DIR_LIBRARY -DSYSTIME_HAS_NO_TM
  43. #OBJS        = lharc.o lzhuf.o lhio.o lhdir.o
  44.  
  45. # Atari ST TOS
  46. #SWITCHIES    = -DSYSV_SYSTEM_DIR -O -mshort -D__ASM__INSDEL__ \
  47. #-fomit-frame-pointer -fforce-mem -fstrength-reduce -fcombine-regs
  48. #OBJS        = lharc.o lzhuf.o lhio.o atari.o dirent.o
  49.  
  50. #
  51. #CC        = gcc
  52. #CFLAGS        = -g -O $(SWITCHIES)
  53. CC        = cc
  54. CFLAGS        =  -O $(SWITCHIES)
  55. ##LDFLAGS    = 
  56. #CC        = gcc
  57. #CFLAGS        =  $(SWITCHIES)
  58. #LDFLAGS        = -mshort -s
  59.  
  60. TAPEFILES    = READ.ME Makefile lharc.doc \
  61.           lharc.c lzhuf.c lhdir.c lhdir.h lhio.c lhio.h
  62. DESTDIR        = /usr/new
  63. # DESTDIR        = /usr/local
  64.  
  65.  
  66. #    Xlharc is test binary.  Please rename to lharc at install.
  67. #    (see install target)
  68. all:    xlharc
  69. #all:    xlharc.ttp
  70.  
  71. #xlharc.ttp    : $(OBJS)
  72. #        $(CC) $(LDFLAGS) -o $@ $(OBJS)
  73.  
  74. xlharc    : $(OBJS)
  75.     $(CC) $(LDFLAGS) -o $@ $(OBJS)
  76.  
  77. #    For Debugging LzHuff module.
  78. lzhuf    : lzhuf.c
  79.     $(CC) $(CFLAGS) -DSELFMAIN -o $* $*.c
  80.  
  81. lharc.o lhdir.o    : lhdir.h
  82. lzhuf.o    lhio.o    : lhio.h
  83.  
  84.  
  85. clean:
  86.     rm -f core lharc.o lzhuf.o lhdir.o lhio.o lharc.tar lharc.tar.Z
  87.  
  88. moreclean:
  89.     rm -f core *.o lharc.tar lharc.tar.Z *~ #*
  90.  
  91. install:
  92.     install -s xlharc $(DESTDIR)/lharc
  93.  
  94. dist:    lharc.tar.Z
  95.  
  96. lharc.tar: $(TAPEFILES)
  97.     mkdir dist.lharc
  98.     ln $(TAPEFILES) dist.lharc
  99.     tar cf lharc.tar dist.lharc
  100.     rm -rf dist.lharc
  101.  
  102. lharc.tar.Z: lharc.tar
  103.     compress <lharc.tar >lharc.tar.Z
  104.  
  105. distlzh:
  106.     mkdir dist.lharc
  107.     ln $(TAPEFILES) dist.lharc
  108.     lharc c lharc.lzh dist.lharc
  109.     rm -rf dist.lharc
  110.  
  111. fixstamp:
  112.     touch $(TAPEFILES)
  113.