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

  1. # Makefile for LHArc Atari ST tos-gcc
  2. #
  3. # derived from Makefile for unix
  4. #    Copyright(C) MCMLXXXIX  Yooichi.Tagawa
  5. # V0.01  Alpha Version                1989.05.28  Y.Tagawa
  6. # V0.02  Alpha Version R2            1989.05.29  Y.Tagawa
  7. # V0.03  Release #3  Beta Version        1989.07.02  Y.Tagawa
  8.  
  9. #-----------------------------------------------------------------------
  10. # DIRECTORY ACCESS DEPENDENDS...
  11. #  The default (no need swtich) is your machine has
  12. #  opendir(),readdir(),closedir() library and 'direct' structure used.
  13. #  If your machine has no opendir (), readdir (), closedir ()
  14. #    -DNONSYSTEM_DIR_LIBRARY
  15. #  and add lhdir.o into OBJS macro (see bellow)
  16. #  If your machine are 'dirent' (not 'direct') structure used,
  17. #    -DSYSV_SYSTEM_DIR
  18. #  Otherwise "Give up!"
  19. #    -DNODIRECTORY
  20. #
  21. #-----------------------------------------------------------------------
  22. # MEMORY ACCESS STUFF
  23. #  Your machine has no BSTRING library (bcmp,bcopy,bzero).
  24. #    -DNOBSTRING
  25. #
  26. #-----------------------------------------------------------------------
  27. # TIME STUFF
  28. #  Your include file '<sys/time.h>' has no 'struct tm',  define this.
  29. #    -DSYSTIME_HAS_NO_TM
  30. #
  31.  
  32. # most of 4.[23]BSD
  33. #    - vax 4.[23]BSD, SONY NEWS 4.[23]BSD etc.
  34. SWITCHIES    = -DTSTFLG -DSYSV_SYSTEM_DIR -O -mshort -fomit-frame-pointer \
  35. -fforce-mem -fstrength-reduce -fcombine-regs
  36. # OBJS        = lharc.o lzhuf.o lhio.o atari.o dirent.o wild.o
  37. OBJS        = lharc.o lzhuf.o lhio.o atari.o dirent.o wild.o
  38.  
  39. # brain damaged 4.[23]BSD clones (shit like uglix, hpux and other brain death)
  40. #    - fucking uglix, uglix on vax or mips
  41. #        (dont try -O3 or -O4 on mips-uglix, it blows up the compiler)
  42. #SWITCHIES    = -O -Dultrix
  43. #OBJS        = lharc.o lzhuf.o lhio.o wild.o
  44.  
  45. # sample of System-V
  46. #    - NEC EWS4800
  47. #SWITCHIES    = -DNONSYSTEM_DIR_LIBRARY -DSYSTIME_HAS_NO_TM
  48. #OBJS        = lharc.o lzhuf.o lhio.o lhdir.o wild.o
  49.  
  50.  
  51. CC        = cgcc
  52. CFLAGS        = $(SWITCHIES)
  53. LDFLAGS        = -mshort -s
  54.  
  55. #    Xlharc is test binary.  Please rename to lharc at install.
  56. #    (see install target)
  57. all:    lharc.ttp
  58.  
  59. lharc.ttp    : $(OBJS)
  60.     $(CC) $(LDFLAGS) -o $@ $(OBJS)
  61.  
  62.  
  63. #    For Debugging LzHuff module.
  64. lzhuf    : lzhuf.c
  65.     $(CC) $(CFLAGS) -DSELFMAIN -o $* $*.c
  66.  
  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.