home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip51.zip / human68k / Makefile.gcc < prev    next >
Makefile  |  1994-02-06  |  2KB  |  72 lines

  1. # Makefile for UnZip 5.1 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:  6 Feb 94
  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. # fUnZip flags
  17. FC = -DFUNZIP
  18.  
  19. # object files
  20. OBJS = unzip.o crypt.o envargs.o explode.o extract.o file_io.o inflate.o \
  21.     match.o unreduce.o unshrink.o zipinfo.o human68k.o options.o
  22. OBJF = funzip.o crypt_.o inflate_.o
  23.  
  24. UNZIPS = unzip.x funzip.x
  25.  
  26. .c.o:
  27.     $(CC) $(CFLAGS) -I. -c $< -o $@
  28.  
  29. # for debugging
  30. .c.s:
  31.     $(CC) $(CFLAGS) -c $< -o $@
  32.  
  33. all:        unzips
  34. unzips:        $(UNZIPS)
  35. docs:        $(DOCS)
  36. unzipsman:    unzips docs
  37. unzipsdocs:    unzips docs
  38.  
  39. clean:
  40.     rm -f $(OBJS) unzip.x $(OBJF) funzip.x
  41.  
  42. unzip.x: $(OBJS)
  43.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  44.  
  45. funzip.x: $(OBJF)
  46.     $(CC) $(LDFLAGS) -o $@ $(OBJF) $(LIBS)
  47.  
  48. crypt.o:    crypt.c unzip.h zip.h crypt.h
  49. envargs.o:    envargs.c unzip.h
  50. explode.o:    explode.c unzip.h
  51. extract.o:    extract.c unzip.h crypt.h
  52. file_io.o:    file_io.c unzip.h crypt.h tables.h
  53. funzip.o:    funzip.c unzip.h crypt.h tables.h
  54. inflate.o:    inflate.c inflate.h unzip.h
  55. match.o:    match.c unzip.h
  56. unreduce.o:    unreduce.c unzip.h
  57. unshrink.o:    unshrink.c unzip.h
  58. unzip.o:    unzip.c unzip.h crypt.h
  59. zipinfo.o:    zipinfo.c unzip.h
  60.  
  61. crypt_.o:    crypt.c unzip.h zip.h crypt.h        # used by funzip
  62.     $(CC) $(CFLAGS) $(FC) -c $< -o $@
  63.  
  64. human68k.o:    human68k/human68k.c unzip.h
  65.     $(CC) $(CFLAGS) -I. -c human68k/human68k.c -o $@
  66.  
  67. inflate_.o:    inflate.c inflate.h unzip.h crypt.h    # used by funzip
  68.     $(CC) $(CFLAGS) $(FC) -c $< -o $@
  69.  
  70. diff:
  71.     -(cd ..; diff -cNr unz51f unz51f-x68k -x GNUmakefile -x "*.[ox]" > unzip68k.dif)
  72.