home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / libio / stdio / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-27  |  6.5 KB  |  212 lines

  1. #
  2. # Makefile for stdio
  3. #
  4.  
  5. TOPDIR=../..
  6.  
  7. include $(TOPDIR)/Makeconfig
  8. include $(TOPDIR)/Makerules
  9.  
  10. INC_CFLAGS=-I../ldouble -I../ldouble -I../ldouble -I../ldouble
  11.  
  12. DIRS:=
  13.  
  14. SRC1S= clearerr.c feof.c ferror.c fgetc.c fileno.c \
  15.     fputc.c freopen.c fseek.c getc.c getchar.c pclose.c putc.c \
  16.     putchar.c rewind.c setbuf.c setfileno.c tempnam.c \
  17.     tmpfile.c tmpnam.c vfscanf.c vprintf.c vscanf.c getw.c \
  18.     putw.c stdio.c setlinebuf.c snprintf.c vsnprintf.c
  19. #    getline.c
  20. # These are compiled from the corresponding ../ioFOO.c files.
  21. IOSRCS= fclose.c fflush.c fgetpos.c fgets.c fopen.c \
  22.     fprintf.c fputs.c fread.c fscanf.c fsetpos.c ftell.c \
  23.     fwrite.c gets.c perror.c printf.c puts.c scanf.c \
  24.     setbuffer.c setvbuf.c sprintf.c sscanf.c ungetc.c \
  25.     vsprintf.c vsscanf.c popen.c
  26. SRC2S= remove.c vfprintf.c fdopen.c $(IOSRCS)
  27.  
  28. SRCS= $(SRC1S) $(SRC2S)
  29. ASMS= $(SRC1S:.c=.s) $(SRC2S:.c=.s)
  30. OBJS= $(SRC1S:.c=.o)
  31. ALIASES= $(SRC2S:.c=.o)
  32.  
  33. include $(TOPDIR)/Maketargets
  34.  
  35. realclean clean::
  36.     $(RM) -f $(IOSRCS)
  37.  
  38. fclose.c:
  39.     @echo "#undef HAVE_GNU_LD" > fclose.c
  40.     @echo "#define HAVE_GNU_LD" >> fclose.c
  41.     @echo "#include <gnu-stabs.h>" >> fclose.c
  42.     @echo "#undef fclose" >> fclose.c
  43.     @echo "symbol_alias (_IO_fclose, fclose);" >> fclose.c
  44.  
  45. fflush.c:
  46.     @echo "#undef HAVE_GNU_LD" > fflush.c
  47.     @echo "#define HAVE_GNU_LD" >> fflush.c
  48.     @echo "#include <gnu-stabs.h>" >> fflush.c
  49.     @echo "#undef fflush" >> fflush.c
  50.     @echo "symbol_alias (_IO_fflush, fflush);" >> fflush.c
  51.  
  52. fgetpos.c:
  53.     @echo "#undef HAVE_GNU_LD" > fgetpos.c
  54.     @echo "#define HAVE_GNU_LD" >> fgetpos.c
  55.     @echo "#include <gnu-stabs.h>" >> fgetpos.c
  56.     @echo "#undef fgetpos" >> fgetpos.c
  57.     @echo "symbol_alias (_IO_fgetpos, fgetpos);" >> fgetpos.c
  58.  
  59. fgets.c:
  60.     @echo "#undef HAVE_GNU_LD" > fgets.c
  61.     @echo "#define HAVE_GNU_LD" >> fgets.c
  62.     @echo "#include <gnu-stabs.h>" >> fgets.c
  63.     @echo "#undef fgets" >> fgets.c
  64.     @echo "symbol_alias (_IO_fgets, fgets);" >> fgets.c
  65.  
  66. fopen.c:
  67.     @echo "#undef HAVE_GNU_LD" > fopen.c
  68.     @echo "#define HAVE_GNU_LD" >> fopen.c
  69.     @echo "#include <gnu-stabs.h>" >> fopen.c
  70.     @echo "#undef fopen" >> fopen.c
  71.     @echo "symbol_alias (_IO_fopen, fopen);" >> fopen.c
  72.  
  73. fprintf.c:
  74.     @echo "#undef HAVE_GNU_LD" > fprintf.c
  75.     @echo "#define HAVE_GNU_LD" >> fprintf.c
  76.     @echo "#include <gnu-stabs.h>" >> fprintf.c
  77.     @echo "#undef fprintf" >> fprintf.c
  78.     @echo "symbol_alias (_IO_fprintf, fprintf);" >> fprintf.c
  79.  
  80. fputs.c:
  81.     @echo "#undef HAVE_GNU_LD" > fputs.c
  82.     @echo "#define HAVE_GNU_LD" >> fputs.c
  83.     @echo "#include <gnu-stabs.h>" >> fputs.c
  84.     @echo "#undef fputs" >> fputs.c
  85.     @echo "symbol_alias (_IO_fputs, fputs);" >> fputs.c
  86.  
  87. fread.c:
  88.     @echo "#undef HAVE_GNU_LD" > fread.c
  89.     @echo "#define HAVE_GNU_LD" >> fread.c
  90.     @echo "#include <gnu-stabs.h>" >> fread.c
  91.     @echo "#undef fread" >> fread.c
  92.     @echo "symbol_alias (_IO_fread, fread);" >> fread.c
  93.  
  94. fscanf.c:
  95.     @echo "#undef HAVE_GNU_LD" > fscanf.c
  96.     @echo "#define HAVE_GNU_LD" >> fscanf.c
  97.     @echo "#include <gnu-stabs.h>" >> fscanf.c
  98.     @echo "#undef fscanf" >> fscanf.c
  99.     @echo "symbol_alias (_IO_fscanf, fscanf);" >> fscanf.c
  100.  
  101. fsetpos.c:
  102.     @echo "#undef HAVE_GNU_LD" > fsetpos.c
  103.     @echo "#define HAVE_GNU_LD" >> fsetpos.c
  104.     @echo "#include <gnu-stabs.h>" >> fsetpos.c
  105.     @echo "#undef fsetpos" >> fsetpos.c
  106.     @echo "symbol_alias (_IO_fsetpos, fsetpos);" >> fsetpos.c
  107.  
  108. ftell.c:
  109.     @echo "#undef HAVE_GNU_LD" > ftell.c
  110.     @echo "#define HAVE_GNU_LD" >> ftell.c
  111.     @echo "#include <gnu-stabs.h>" >> ftell.c
  112.     @echo "#undef ftell" >> ftell.c
  113.     @echo "symbol_alias (_IO_ftell, ftell);" >> ftell.c
  114.  
  115. fwrite.c:
  116.     @echo "#undef HAVE_GNU_LD" > fwrite.c
  117.     @echo "#define HAVE_GNU_LD" >> fwrite.c
  118.     @echo "#include <gnu-stabs.h>" >> fwrite.c
  119.     @echo "#undef fwrite" >> fwrite.c
  120.     @echo "symbol_alias (_IO_fwrite, fwrite);" >> fwrite.c
  121.  
  122. gets.c:
  123.     @echo "#undef HAVE_GNU_LD" > gets.c
  124.     @echo "#define HAVE_GNU_LD" >> gets.c
  125.     @echo "#include <gnu-stabs.h>" >> gets.c
  126.     @echo "#undef gets" >> gets.c
  127.     @echo "symbol_alias (_IO_gets, gets);" >> gets.c
  128.  
  129. perror.c:
  130.     @echo "#undef HAVE_GNU_LD" > perror.c
  131.     @echo "#define HAVE_GNU_LD" >> perror.c
  132.     @echo "#include <gnu-stabs.h>" >> perror.c
  133.     @echo "#undef perror" >> perror.c
  134.     @echo "symbol_alias (_IO_perror, perror);" >> perror.c
  135.  
  136. printf.c:
  137.     @echo "#undef HAVE_GNU_LD" > printf.c
  138.     @echo "#define HAVE_GNU_LD" >> printf.c
  139.     @echo "#include <gnu-stabs.h>" >> printf.c
  140.     @echo "#undef printf" >> printf.c
  141.     @echo "symbol_alias (_IO_printf, printf);" >> printf.c
  142.  
  143. puts.c:
  144.     @echo "#undef HAVE_GNU_LD" > puts.c
  145.     @echo "#define HAVE_GNU_LD" >> puts.c
  146.     @echo "#include <gnu-stabs.h>" >> puts.c
  147.     @echo "#undef puts" >> puts.c
  148.     @echo "symbol_alias (_IO_puts, puts);" >> puts.c
  149.  
  150. scanf.c:
  151.     @echo "#undef HAVE_GNU_LD" > scanf.c
  152.     @echo "#define HAVE_GNU_LD" >> scanf.c
  153.     @echo "#include <gnu-stabs.h>" >> scanf.c
  154.     @echo "#undef scanf" >> scanf.c
  155.     @echo "symbol_alias (_IO_scanf, scanf);" >> scanf.c
  156.  
  157. setbuffer.c:
  158.     @echo "#undef HAVE_GNU_LD" > setbuffer.c
  159.     @echo "#define HAVE_GNU_LD" >> setbuffer.c
  160.     @echo "#include <gnu-stabs.h>" >> setbuffer.c
  161.     @echo "#undef setbuffer" >> setbuffer.c
  162.     @echo "symbol_alias (_IO_setbuffer, setbuffer);" >> setbuffer.c
  163.  
  164. setvbuf.c:
  165.     @echo "#undef HAVE_GNU_LD" > setvbuf.c
  166.     @echo "#define HAVE_GNU_LD" >> setvbuf.c
  167.     @echo "#include <gnu-stabs.h>" >> setvbuf.c
  168.     @echo "#undef setvbuf" >> setvbuf.c
  169.     @echo "symbol_alias (_IO_setvbuf, setvbuf);" >> setvbuf.c
  170.  
  171. sprintf.c:
  172.     @echo "#undef HAVE_GNU_LD" > sprintf.c
  173.     @echo "#define HAVE_GNU_LD" >> sprintf.c
  174.     @echo "#include <gnu-stabs.h>" >> sprintf.c
  175.     @echo "#undef sprintf" >> sprintf.c
  176.     @echo "symbol_alias (_IO_sprintf, sprintf);" >> sprintf.c
  177.  
  178. sscanf.c:
  179.     @echo "#undef HAVE_GNU_LD" > sscanf.c
  180.     @echo "#define HAVE_GNU_LD" >> sscanf.c
  181.     @echo "#include <gnu-stabs.h>" >> sscanf.c
  182.     @echo "#undef sscanf" >> sscanf.c
  183.     @echo "symbol_alias (_IO_sscanf, sscanf);" >> sscanf.c
  184.  
  185. ungetc.c:
  186.     @echo "#undef HAVE_GNU_LD" > ungetc.c
  187.     @echo "#define HAVE_GNU_LD" >> ungetc.c
  188.     @echo "#include <gnu-stabs.h>" >> ungetc.c
  189.     @echo "#undef ungetc" >> ungetc.c
  190.     @echo "symbol_alias (_IO_ungetc, ungetc);" >> ungetc.c
  191.  
  192. vsprintf.c:
  193.     @echo "#undef HAVE_GNU_LD" > vsprintf.c
  194.     @echo "#define HAVE_GNU_LD" >> vsprintf.c
  195.     @echo "#include <gnu-stabs.h>" >> vsprintf.c
  196.     @echo "#undef vsprintf" >> vsprintf.c
  197.     @echo "symbol_alias (_IO_vsprintf, vsprintf);" >> vsprintf.c
  198.  
  199. vsscanf.c:
  200.     @echo "#undef HAVE_GNU_LD" > vsscanf.c
  201.     @echo "#define HAVE_GNU_LD" >> vsscanf.c
  202.     @echo "#include <gnu-stabs.h>" >> vsscanf.c
  203.     @echo "#undef vsscanf" >> vsscanf.c
  204.     @echo "symbol_alias (_IO_vsscanf, vsscanf);" >> vsscanf.c
  205.  
  206. popen.c:
  207.     @echo "#undef HAVE_GNU_LD" > popen.c
  208.     @echo "#define HAVE_GNU_LD" >> popen.c
  209.     @echo "#include <gnu-stabs.h>" >> popen.c
  210.     @echo "#undef popen" >> popen.c
  211.     @echo "symbol_alias (_IO_popen, popen);" >> popen.c
  212.