home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume8 / unzipbsd / Makefile < prev    next >
Encoding:
Makefile  |  1989-10-01  |  928 b   |  47 lines

  1. # Makefile for unzipbsd
  2.  
  3.  
  4. # "make unzip"    -- makes unzip in current directory
  5. # "make install"  -- makes unzip, then moves it into DESTDIR defined below
  6. # "make clean"    -- deletes object files and executable unzip from current dir
  7. # "make shar"     -- make a SHell ARchive
  8. # "make arc"      -- make a DOS archive
  9.  
  10. # Directory where we want to move executable unzip on "make install"
  11. DESTDIR=/usr/public
  12.  
  13. # CFLAGS are flags for the C compiler.  LDFLAGS are flags for the loader.
  14. CFLAGS= -O
  15. # This is used for DBX
  16. #CFLAGS= -g
  17.  
  18. LDFLAGS= -s
  19.  
  20. CC=cc
  21.  
  22. .c.o:
  23.     $(CC) -c $(CFLAGS) $*.c
  24.  
  25. SRCS = unzipbsd.c crc32.c patchlevel.h
  26. OBJS = unzipbsd.o crc32.o
  27.  
  28. unzip: $(OBJS)
  29.     cc $(LDFLAGS) -o unzip $(OBJS)
  30.  
  31. unzip.o: unzip.c
  32.  
  33. crc32.o: crc32.c
  34.  
  35. install: unzip
  36.     mv unzip $(DESTDIR)/unzip
  37.  
  38. clean:
  39.     /bin/rm -f $(OBJS) core unzip
  40.  
  41. shar:
  42.     @shar -a Makefile $(SRCS) unzip.doc > unzipbsd.shar
  43.  
  44. arc:
  45.     @arc -a unzipbsd.arc Makefile $(SRCS) unzip.doc
  46.  
  47.