home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip52.zip / human68k / Makefile.gcc < prev    next >
Makefile  |  1996-02-11  |  3KB  |  107 lines

  1. # Makefile for UnZip 5.20 and later:  Human68K with gcc        NIIMI Satoshi
  2. #
  3. # The original Makefile maybe works fine, but X68000 is too slow
  4. # to process it.  So I split out needed part.
  5. #
  6. # Last revised:  11 Feb 96
  7.  
  8. VPATH = HUMAN68K
  9.  
  10. CC = gcc
  11. CFLAGS = -Wall -O -I. -fomit-frame-pointer -fstrength-reduce
  12. LDFLAGS = -s
  13.  
  14. LIBS = -lsignal -ldos -lmb
  15.  
  16. # UnZipSFX flags
  17. XC = -DSFX
  18.  
  19. # fUnZip flags
  20. FC = -DFUNZIP
  21.  
  22. # object files
  23. OBJS = unzip.o crc32.o crctab.o crypt.o envargs.o explode.o extract.o \
  24.     fileio.o globals.o inflate.o list.o match.o process.o ttyio.o \
  25.     unreduce.o unshrink.o zipinfo.o human68k.o options.o
  26. OBJX = unzipsfx.o crc32.o crctab.o crypt.o extract_.o fileio.o inflate.o \
  27.     match.o process_.o ttyio.o human68_.o
  28. OBJF = funzip.o crc32.o crypt_.o globals_.o inflate_.o ttyio_.o
  29.  
  30. UNZIP_H = unzip.h unzpriv.h globals.h
  31.  
  32. UNZIPS = unzip.x unzipsfx.x funzip.x
  33.  
  34. .c.o:
  35.     $(CC) $(CFLAGS) -I. -c $< -o $@
  36.  
  37. # for debugging
  38. .c.s:
  39.     $(CC) $(CFLAGS) -c $< -o $@
  40.  
  41. all:        unzips
  42. unzips:        $(UNZIPS)
  43. docs:        $(DOCS)
  44. unzipsman:    unzips docs
  45. unzipsdocs:    unzips docs
  46.  
  47. clean:
  48.     rm -f $(OBJS) $(OBJF) $(OBJX) $(UNZIPS)
  49.  
  50. unzip.x: $(OBJS)
  51.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  52.  
  53. unzipsfx.x: $(OBJX)
  54.     $(CC) $(LDFLAGS) -o $@ $(OBJX) $(LIBS)
  55.  
  56. funzip.x: $(OBJF)
  57.     $(CC) $(LDFLAGS) -o $@ $(OBJF) $(LIBS)
  58.  
  59. crc32.o:    crc32.c $(UNZIP_H) zip.h
  60. crctab.o:    crctab.c $(UNZIP_H) zip.h
  61. crypt.o:    crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
  62. envargs.o:    envargs.c $(UNZIP_H)
  63. explode.o:    explode.c $(UNZIP_H)
  64. extract.o:    extract.c $(UNZIP_H) crypt.h
  65. fileio.o:    fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
  66. funzip.o:    funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h
  67. globals.o:    globals.c $(UNZIP_H)
  68. inflate.o:    inflate.c inflate.h $(UNZIP_H)
  69. list.o:        list.c $(UNZIP_H)
  70. match.o:    match.c $(UNZIP_H)
  71. process.o:    process.c $(UNZIP_H)
  72. ttyio.o:    ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
  73. unreduce.o:    unreduce.c $(UNZIP_H)
  74. unshrink.o:    unshrink.c $(UNZIP_H)
  75. unzip.o:    unzip.c $(UNZIP_H) crypt.h version.h consts.h
  76. zipinfo.o:    zipinfo.c $(UNZIP_H)
  77.  
  78. crypt_.o:    crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h    # funzip
  79.     $(CC) $(CFLAGS) $(FC) -c $< -o $@
  80.  
  81. extract_.o:    extract.c $(UNZIP_H) crypt.h            # unzipsfx
  82.     $(CC) $(CFLAGS) $(XC) -c $< -o $@
  83.  
  84. globals_.o:    globals.c $(UNZIP_H)                # funzip
  85.     $(CC) $(CFLAGS) $(FC) -c $< -o $@
  86.  
  87. human68k.o:    human68k/human68k.c $(UNZIP_H)
  88.     $(CC) $(CFLAGS) -I. -c human68k/human68k.c -o $@
  89.  
  90. human68_.o:    human68k/human68k.c $(UNZIP_H)            # unzipsfx
  91.     $(CC) $(CFLAGS) $(XC) -I. -c human68k/human68k.c -o $@
  92.  
  93. inflate_.o:    inflate.c inflate.h $(UNZIP_H) crypt.h        # funzip
  94.     $(CC) $(CFLAGS) $(FC) -c $< -o $@
  95.  
  96. process_.o:    process.c $(UNZIP_H)                # unzipsfx
  97.     $(CC) $(CFLAGS) $(XC) -c $< -o $@
  98.  
  99. ttyio_.o:    ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h    # funzip
  100.     $(CC) $(CFLAGS) $(FC) -c $< -o $@
  101.  
  102. unzipsfx.o:    unzip.c $(UNZIP_H) crypt.h version.h consts.h    # unzipsfx
  103.     $(CC) $(CFLAGS) $(XC) -c $< -o $@
  104.  
  105. diff:
  106.     -(cd ..; diff -cNr unz52h unz52h-x68k -x GNUmakefile -x "*.[ox]" > unzip68k.dif)
  107.