home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / 2bsd.tar.gz / 2bsd.tar / upgrade / libretro / makefile < prev    next >
Encoding:
Makefile  |  1979-04-19  |  712 b   |  37 lines

  1. #
  2. # retrofit - fit a v7 program onto a v6 system
  3. #
  4. LIBDIR=    /usr/lib
  5. OBJS=    getenv.o getpwuid.o getpwent.o\
  6.     _getuid.o _sgtty.o htmpg.o htmps.o ttyname.o ttyn.o isatty.o _stat.o\
  7.     setjmp.o wait.o ilongops.o ctype.o typeof.o lseek.o
  8. AR=    -ar
  9. AS=    -as
  10. CFLAGS=    -O -I/usr/include/retrofit
  11. ED=    -ed
  12.  
  13. libretro.a: ${OBJS}
  14.     rm -f libretro.a
  15.     ${AR} r libretro.a ${OBJS}
  16.  
  17. ctype.o: ctype.s
  18.     ${ED} <:cfix ctype.s
  19.     ${AS} -o ctype.o ctype.s
  20.  
  21. ctype.s: ctype.c
  22.     ${CC} -I/usr/include/retrofit -S ctype.c
  23.  
  24. print:
  25.     @pr READ_ME
  26.     @pr ../hdrs/*.h ../hdrs/sys/*.h
  27.     @pr *.c *.s
  28.  
  29. clean:
  30.     rm -f libretro.a ctype.s
  31.     -rm -f *.o
  32.  
  33. install: libretro.a
  34.     cat /dev/null >> /etc/htmp
  35.     mv libretro.a ${LIBDIR}/libretro.a
  36.     chmod 644 ${LIBDIR}/libretro.a
  37.