home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / archiver / rblharc / makefile.tpg < prev    next >
Encoding:
Makefile  |  1993-07-08  |  2.1 KB  |  74 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    = -DSYSV_SYSTEM_DIR -O -mshort -fstrength-reduce -pg
  35. OBJS        = lharc.o lzhuf.o lhio.o atari.o dirent.o
  36.  
  37. # brain damaged 4.[23]BSD clones (shit like uglix, hpux and other brain death)
  38. #    - fucking uglix, uglix on vax or mips
  39. #        (dont try -O3 or -O4 on mips-uglix, it blows up the compiler)
  40. #SWITCHIES    = -O -Dultrix
  41. #OBJS        = lharc.o lzhuf.o lhio.o
  42.  
  43. # sample of System-V
  44. #    - NEC EWS4800
  45. #SWITCHIES    = -DNONSYSTEM_DIR_LIBRARY -DSYSTIME_HAS_NO_TM
  46. #OBJS        = lharc.o lzhuf.o lhio.o lhdir.o
  47.  
  48.  
  49. CC        = cgcc
  50. CFLAGS        = $(SWITCHIES)
  51. LDFLAGS        = -mshort -pg
  52.  
  53. #    Xlharc is test binary.  Please rename to lharc at install.
  54. #    (see install target)
  55. all:    lharc.ttp
  56.  
  57. lharc.ttp    : $(OBJS)
  58.     $(CC) $(LDFLAGS) -o $@ $(OBJS) -v
  59.  
  60.  
  61. #    For Debugging LzHuff module.
  62. lzhuf    : lzhuf.c
  63.     $(CC) $(CFLAGS) -DSELFMAIN -o $* $*.c
  64.  
  65. lzhuf.o    lhio.o    : lhio.h
  66.  
  67.  
  68. clean:
  69.     rm -f core lharc.o lzhuf.o lhdir.o lhio.o lharc.tar lharc.tar.Z
  70.  
  71. moreclean:
  72.     rm -f core *.o lharc.tar lharc.tar.Z *~ #*
  73.  
  74.