home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / archiver / rblharc / makefile.upg < prev    next >
Makefile  |  1993-07-08  |  3KB  |  103 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    = -O -DTSTFLG -pg
  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    = -O -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.  
  46. #CC        = gcc
  47. #CFLAGS        = -g -O $(SWITCHIES)
  48. ##CC        = cc
  49. ##CFLAGS    = -g -p $(SWITCHIES)
  50. ##LDFLAGS    = -p
  51. CC        = gcc
  52. CFLAGS        =  $(SWITCHIES)
  53. TAPEFILES    = READ.ME Makefile lharc.doc \
  54.           lharc.c lzhuf.c lhdir.c lhdir.h lhio.c lhio.h
  55. DESTDIR        = /usr/new
  56. # DESTDIR        = /usr/local
  57.  
  58.  
  59. #    Xlharc is test binary.  Please rename to lharc at install.
  60. #    (see install target)
  61. all:    xlharc
  62.  
  63. xlharc    : $(OBJS)
  64.     $(CC) $(LDFLAGS) -o $@ $(OBJS) -pg
  65.  
  66.  
  67. #    For Debugging LzHuff module.
  68. lzhuf    : lzhuf.c
  69.     $(CC) $(CFLAGS) -DSELFMAIN -o $* $*.c
  70.  
  71. lharc.o lhdir.o    : lhdir.h
  72. lzhuf.o    lhio.o    : lhio.h
  73.  
  74.  
  75. clean:
  76.     rm -f core lharc.o lzhuf.o lhdir.o lhio.o lharc.tar lharc.tar.Z
  77.  
  78. moreclean:
  79.     rm -f core *.o lharc.tar lharc.tar.Z *~ #*
  80.  
  81. install:
  82.     install -s xlharc $(DESTDIR)/lharc
  83.  
  84. dist:    lharc.tar.Z
  85.  
  86. lharc.tar: $(TAPEFILES)
  87.     mkdir dist.lharc
  88.     ln $(TAPEFILES) dist.lharc
  89.     tar cf lharc.tar dist.lharc
  90.     rm -rf dist.lharc
  91.  
  92. lharc.tar.Z: lharc.tar
  93.     compress <lharc.tar >lharc.tar.Z
  94.  
  95. distlzh:
  96.     mkdir dist.lharc
  97.     ln $(TAPEFILES) dist.lharc
  98.     lharc c lharc.lzh dist.lharc
  99.     rm -rf dist.lharc
  100.  
  101. fixstamp:
  102.     touch $(TAPEFILES)
  103.