home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / util / compress / Makefile < prev    next >
Encoding:
Makefile  |  1988-10-19  |  1.9 KB  |  62 lines

  1. #
  2. # Copyright (c) 1987 The Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    5.9 (Berkeley) 10/15/88
  18. #
  19. CFLAGS=    -O -DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM` 
  20. LIBC=    /lib/libc.a
  21. SRCS=    compress.c
  22. OBJS=
  23. MAN=    compress.0
  24.  
  25. all: compress
  26.  
  27. compress: USERMEM ${LIBC}
  28.     ${CC} ${CFLAGS} -o $@ $@.c
  29.  
  30. # USERMEM may have to be set by hand.  It should contain the amount of
  31. # available user memory in bytes.  Set it to zero, for physical memory
  32. # less than 1 Meg.
  33. USERMEM: FRC
  34.     sh usermem.sh > USERMEM
  35.  
  36. clean:
  37.     rm -f ${OBJS} core compress
  38.  
  39. cleandir: clean
  40.     rm -f ${MAN} tags .depend
  41.  
  42. depend: ${SRCS}
  43.     mkdep -p ${CFLAGS} ${SRCS}
  44.  
  45. install: ${MAN}
  46.     install -s -o bin -g bin -m 755 compress ${DESTDIR}/usr/ucb/compress
  47.     rm -f ${DESTDIR}/usr/ucb/uncompress ${DESTDIR}/usr/ucb/zcat
  48.     ln ${DESTDIR}/usr/ucb/compress ${DESTDIR}/usr/ucb/uncompress
  49.     ln ${DESTDIR}/usr/ucb/compress ${DESTDIR}/usr/ucb/zcat
  50.     rm -f ${DESTDIR}/usr/man/cat1/uncompress.0 ${DESTDIR}/usr/man/cat1/zcat.0
  51.     install -c -o bin -g bin -m 444 compress.0 ${DESTDIR}/usr/man/cat1
  52.     ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/uncompress.0
  53.     ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/zcat.0
  54.  
  55. lint: ${SRCS}
  56.     lint ${CFLAGS} ${SRCS}
  57.  
  58. tags: ${SRCS}
  59.     ctags ${SRCS}
  60.  
  61. FRC:
  62.