home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / packer / lharc / sources / makefile < prev    next >
Encoding:
Makefile  |  1994-02-03  |  2.4 KB  |  98 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    =
  33. OBJS        = lharc.o lzhuf.o lhio.o
  34.  
  35. # sample of System-V
  36. #    - NEC EWS4800
  37. #SWITCHIES    = -DNONSYSTEM_DIR_LIBRARY -DSYSTIME_HAS_NO_TM
  38. #OBJS        = lharc.o lzhuf.o lhio.o lhdir.o
  39.  
  40.  
  41. #CC        = gcc
  42. #CFLAGS        = -g -O $(SWITCHIES)
  43. ##CC        = cc
  44. ##CFLAGS    = -g -p $(SWITCHIES)
  45. ##LDFLAGS    = -p
  46. CC        = cc
  47. CFLAGS        = -g $(SWITCHIES)
  48. TAPEFILES    = READ.ME Makefile lharc.doc \
  49.           lharc.c lzhuf.c lhdir.c lhdir.h lhio.c lhio.h
  50. DESTDIR        = /usr/new
  51. # DESTDIR        = /usr/local
  52.  
  53.  
  54. #    Xlharc is test binary.  Please rename to lharc at install.
  55. #    (see install target)
  56. all:    xlharc
  57.  
  58. xlharc    : $(OBJS)
  59.     $(CC) $(LDFLAGS) -o $@ $(OBJS)
  60.  
  61.  
  62. #    For Debugging LzHuff module.
  63. lzhuf    : lzhuf.c
  64.     $(CC) $(CFLAGS) -DSELFMAIN -o $* $*.c
  65.  
  66. lharc.o lhdir.o    : lhdir.h
  67. lzhuf.o    lhio.o    : lhio.h
  68.  
  69.  
  70. clean:
  71.     rm -f core lharc.o lzhuf.o lhdir.o lhio.o lharc.tar lharc.tar.Z
  72.  
  73. moreclean:
  74.     rm -f core *.o lharc.tar lharc.tar.Z *~ #*
  75.  
  76. install:
  77.     install -s xlharc $(DESTDIR)/lharc
  78.  
  79. dist:    lharc.tar.Z
  80.  
  81. lharc.tar: $(TAPEFILES)
  82.     mkdir dist.lharc
  83.     ln $(TAPEFILES) dist.lharc
  84.     tar cf lharc.tar dist.lharc
  85.     rm -rf dist.lharc
  86.  
  87. lharc.tar.Z: lharc.tar
  88.     compress <lharc.tar >lharc.tar.Z
  89.  
  90. distlzh:
  91.     mkdir dist.lharc
  92.     ln $(TAPEFILES) dist.lharc
  93.     lharc c lharc.lzh dist.lharc
  94.     rm -rf dist.lharc
  95.  
  96. fixstamp:
  97.     touch $(TAPEFILES)
  98.