home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / lhaxenix.zoo / lharc.xenix / makefile < prev    next >
Makefile  |  1990-04-02  |  2KB  |  60 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. #-DSYSTIME_HAS_NO_TM
  38. SWITCHIES    = -DNOBSTRING -DSYSV_SYSTEM_DIR
  39. OBJS        = lharc.o lzhuf.o lhio.o rename.o
  40.  
  41. CC        = cc
  42. CFLAGS        = $(SWITCHIES)
  43. LDFLAGS        = -ldir -lx
  44.  
  45. #    Xlharc is test binary.  Please rename to lharc at install.
  46. #    (see install target)
  47. all:    xlharc
  48.  
  49. xlharc    : $(OBJS)
  50.     $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
  51.  
  52. #    For Debugging LzHuff module.
  53. lzhuf    : lzhuf.c
  54.     $(CC) $(CFLAGS) -DSELFMAIN -o $* $*.c
  55.  
  56. lzhuf.o    lhio.o    : lhio.h
  57.  
  58. clean:
  59.     rm -f core lharc.o lzhuf.o lhdir.o lhio.o lharc.tar lharc.tar.Z
  60.