home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / IO / MAKEFILE < prev    next >
Encoding:
Text File  |  1993-01-02  |  8.7 KB  |  192 lines

  1. #
  2. # /emx/lib/io/makefile
  3. #
  4. GCC=gcc -O -Wall -mprobe
  5. AR=ar
  6. I=/emx/include/
  7. E=$(I)sys/emx.h
  8. FCNTL=$(I)fcntl.h $(I)sys/fcntl.h
  9. MT=../mt/
  10.  
  11. LIBC=../libc.a
  12.  
  13. .SUFFIXES: .s .o .obj
  14.  
  15. .c.o:
  16.     $(GCC) -c $*.c
  17.  
  18. default:    $(LIBC)
  19.  
  20. clean:
  21.     -del *.o $(DELOPT)
  22.  
  23. access.o: access.c $(E) $(I)io.h $(I)errno.h
  24. chmod.o: chmod.c $(I)io.h $(I)sys/types.h $(I)sys/stat.h $(E) $(I)errno.h
  25. chsize.o: chsize.c $(I)io.h $(E) $(I)errno.h $(I)strings.h
  26. close.o: close.c $(E) $(I)io.h $(I)errno.h
  27. creat.o: creat.c $(I)io.h $(FCNTL)
  28. crlf.o: crlf.c $(I)io.h $(I)string.h
  29. dup.o: dup.c $(I)io.h $(E) $(I)errno.h
  30. dup2.o: dup2.c $(I)io.h $(E) $(I)errno.h
  31. ead.o: ead.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  32.     $(I)io.h ea.h
  33. eadadd.o: eadadd.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  34.     $(I)io.h ea.h
  35. eadcopy.o: eadcopy.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  36.     $(I)io.h ea.h
  37. eadfea.o: eadfea.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  38.     $(I)io.h ea.h
  39. eadread.o: eadread.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  40.     $(I)io.h ea.h
  41. eadsort.o: eadsort.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  42.     $(I)io.h ea.h
  43. eadwrite.o: eadwrite.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  44.     $(I)io.h ea.h
  45. eaerrno.o: eaerrno.c $(I)errno.h $(I)os2.h $(I)stdlib.h ea.h
  46. eafree.o: eafree.c $(I)sys/ea.h $(I)stdlib.h
  47. eaget.o: eaget.c $(I)sys/ea.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  48.     $(I)io.h ea.h
  49. eaput.o: eaput.c $(I)sys/ea.h $(I)stdlib.h $(I)string.h $(I)errno.h \
  50.     $(I)io.h ea.h
  51. earemove.o: earemove.c $(I)sys/ea.h $(I)stdlib.h
  52. eawrite.o: eawrite.c ea.h $(I)stdlib.h
  53. eof.o: eof.c $(I)io.h $(E) $(I)errno.h
  54. fcntl.o: fcntl.c $(E) $(FCNTL) $(I)errno.h
  55. fileleng.o: fileleng.c $(I)io.h $(E)
  56. fstat.o: fstat.c $(I)io.h $(E) $(I)sys/types.h $(I)sys/stat.h $(I)time.h
  57. fsync.o: fsync.c $(I)io.h $(E)
  58. ftruncat.o: ftruncat.c $(I)io.h $(E) $(I)errno.h
  59. getw.o: getw.c $(I)stdio.h
  60. ioctl.o: ioctl.c $(E) $(I)io.h $(I)stdlib.h $(I)sys/termio.h $(I)sys/ioctl.h \
  61.                  $(I)errno.h $(I)stdarg.h
  62. isatty.o: isatty.c $(E) $(I)io.h $(I)errno.h
  63. lseek.o: lseek.c $(E) $(I)io.h $(I)errno.h
  64. mktemp.o: mktemp.c $(I)io.h $(I)string.h $(I)process.h $(I)errno.h
  65. open.o: open.c $(E) $(I)io.h $(I)stdarg.h $(I)share.h
  66. read.o: read.c $(E) $(I)io.h $(I)errno.h $(I)string.h $(FCNTL)
  67. remove.o: remove.c $(E) $(I)io.h $(I)errno.h
  68. sopen.o: sopen.c $(E) $(I)io.h $(I)stdarg.h
  69. stat.o: stat.c $(I)io.h $(I)sys/types.h $(I)sys/stat.h $(I)time.h \
  70.                $(I)stdlib.h $(I)errno.h $(I)string.h
  71. tell.o: tell.c $(I)io.h $(E) $(I)errno.h
  72. truncate.o: truncate.c $(I)io.h $(FCNTL)
  73. umask.o: umask.c $(E) $(I)stdlib.h
  74. unlink.o: unlink.c $(I)io.h
  75. write.o: write.c $(E) $(I)io.h $(I)errno.h $(I)string.h $(FCNTL)
  76. iodata.o: iodata.c $(E) $(FCNTL)
  77. isterm.o: isterm.c $(I)io.h $(E)
  78. _sopen.o: _sopen.c $(E) $(I)io.h $(I)stdarg.h $(I)errno.h $(FCNTL) \
  79.                    $(I)sys/types.h $(I)sys/stat.h
  80.  
  81. clearerr.o: clearerr.c $(I)stdio.h
  82. fbuf.o: fbuf.c $(I)stdio.h $(E) $(I)stdlib.h
  83. fclose.o: fclose.c $(I)stdio.h $(I)stdlib.h $(I)io.h $(E) $(I)string.h
  84. fcloseal.o: fcloseal.c $(I)stdio.h $(E)
  85. fdopen.o: fdopen.c $(I)stdio.h $(E) $(FCNTL) $(I)errno.h $(I)io.h
  86. fflush.o: fflush.c $(I)stdio.h $(E) $(FCNTL) $(I)io.h $(I)sys/ioctl.h
  87. fgetc.o: fgetc.c $(I)stdio.h
  88. fgetchar.o: fgetchar.c $(I)stdio.h
  89. fgetpos.o: fgetpos.c $(I)stdio.h
  90. fgets.o: fgets.c $(I)stdio.h
  91. fill.o: fill.c $(I)stdio.h $(E) $(I)io.h $(I)errno.h $(FCNTL)
  92. flush.o: flush.c $(I)stdio.h $(E) $(I)io.h $(I)errno.h $(FCNTL)
  93. flushall.o: flushall.c $(I)stdio.h $(E)
  94. flushstr.o: flushstr.c $(I)stdio.h $(E) $(I)io.h $(I)errno.h $(FCNTL)
  95. fopen.o: fopen.c $(I)stdio.h $(E) $(I)share.h
  96. fprintf.o: fprintf.c $(I)stdio.h $(I)stdarg.h $(E)
  97. fputc.o: fputc.c $(I)stdio.h
  98. fputchar.o: fputchar.c $(I)stdio.h
  99. fputs.o: fputs.c $(I)stdio.h $(I)string.h $(E)
  100. fread.o: fread.c $(I)stdio.h $(I)io.h $(I)errno.h $(I)string.h $(E)
  101. freopen.o: freopen.c $(I)stdio.h $(E) $(I)share.h
  102. fscanf.o: fscanf.c $(I)stdio.h $(I)stdarg.h $(E)
  103. fseek.o: fseek.c $(I)stdio.h $(I)io.h $(I)errno.h $(E)
  104. fseekhdr.o: fseekhdr.c $(I)stdio.h $(I)memory.h $(I)errno.h
  105. fsetmode.o: fsetmode.c $(I)stdio.h $(I)io.h $(I)errno.h $(FCNTL)
  106. fsetpos.o: fsetpos.c $(I)stdio.h
  107. fsopen.o: fsopen.c $(I)stdio.h $(E)
  108. ftell.o: ftell.c $(I)stdio.h $(I)io.h $(E)
  109. fwrite.o: fwrite.c $(I)stdio.h $(I)io.h $(I)errno.h $(I)string.h $(E)
  110. gets.o: gets.c $(I)stdio.h
  111. input.o: input.c $(E) $(I)stdio.h $(I)stdarg.h $(I)string.h \
  112.                  $(I)stdlib.h $(I)limits.h $(I)ctype.h
  113. newstrea.o: newstrea.c $(I)stdio.h
  114. output.o: output.c $(E) $(I)stdio.h $(I)stdarg.h $(I)string.h \
  115.                    $(I)stdlib.h $(I)limits.h
  116. pclose.o: pclose.c $(I)io.h $(I)process.h $(I)errno.h $(E)
  117. pipe.o: pipe.c $(I)io.h $(I)errno.h $(FCNTL) $(E)
  118. popen.o: popen.c $(E) $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)process.h \
  119.                  $(I)io.h $(I)unistd.h $(FCNTL) $(I)errno.h
  120. printf.o: printf.c $(I)stdio.h $(I)stdarg.h $(E)
  121. puts.o: puts.c $(I)stdio.h $(I)string.h $(E)
  122. putw.o: putw.c $(I)stdio.h
  123. rename.o: rename.c $(I)stdio.h $(E) $(I)errno.h
  124. rewind.o: rewind.c $(I)stdio.h
  125. rmtmp.o: rmtmp.c $(I)stdio.h $(E)
  126. scanf.o: scanf.c $(I)stdio.h $(I)stdarg.h $(E)
  127. seekhdr.o: seekhdr.c $(I)io.h $(I)memory.h $(I)errno.h
  128. setbuf.o: setbuf.c $(I)stdio.h
  129. setbuffe.o: setbuffe.c $(I)stdio.h
  130. setmode.o: setmode.c $(I)io.h $(FCNTL) $(I)errno.h $(E)
  131. setvbuf.o: setvbuf.c $(I)stdio.h $(E) $(I)stdlib.h
  132. sprintf.o: sprintf.c $(I)stdio.h $(I)stdarg.h $(E) $(I)limits.h
  133. sscanf.o: sscanf.c $(I)stdio.h $(I)stdarg.h $(E) $(I)limits.h
  134. select.o: select.c $(I)io.h $(I)sys/types.h $(I)sys/time.h $(E) $(I)stdlib.h \
  135.                    $(I)memory.h
  136. stdio.o: stdio.c $(I)stdio.h $(E)
  137. tmpbuf.o: tmpbuf.c $(E) $(I)stdio.h $(I)io.h $(I)sys/ioctl.h
  138. tmpfile.o: tmpfile.c $(I)stdio.h $(E) $(I)stdlib.h $(I)errno.h $(I)io.h \
  139.                      $(I)string.h $(I)sys/param.h
  140. ungetc.o: ungetc.c $(I)stdio.h $(E) $(I)errno.h
  141. utime.o: utime.c $(I)time.h $(I)sys/time.h $(I)sys/utime.h $(E)
  142. utimes.o: utimes.c $(I)time.h $(I)sys/time.h $(E)
  143. vfprintf.o: vfprintf.c $(I)stdio.h $(E)
  144. vfscanf.o: vfscanf.c $(I)stdio.h $(I)stdarg.h $(E)
  145. vprintf.o: vprintf.c $(I)stdio.h $(E)
  146. vscanf.o: vscanf.c $(I)stdio.h $(I)stdarg.h $(E)
  147. vsprintf.o: vsprintf.c $(I)stdio.h $(E) $(I)limits.h
  148. vsscanf.o: vsscanf.c $(I)stdio.h $(I)stdarg.h $(E) $(I)limits.h
  149. _fopen.o: _fopen.c $(I)stdio.h $(E) $(I)io.h $(FCNTL) $(I)errno.h
  150.  
  151. $(LIBC):  read.o write.o open.o close.o iodata.o lseek.o isatty.o access.o \
  152.     eof.o remove.o tell.o unlink.o fileleng.o creat.o fstat.o fsync.o dup.o \
  153.     fcntl.o pipe.o pclose.o popen.o dup2.o select.o getw.o putw.o sopen.o \
  154.     chmod.o stat.o mktemp.o ftruncat.o truncate.o fopen.o freopen.o \
  155.     fclose.o fread.o fwrite.o fflush.o fgetc.o fputc.o fgetchar.o \
  156.     fputchar.o fputs.o puts.o flush.o fill.o fbuf.o _fopen.o stdio.o \
  157.     flushall.o fcloseal.o clearerr.o rewind.o setvbuf.o fdopen.o ioctl.o \
  158.     fgetpos.o fsetpos.o ftell.o fseek.o setbuf.o printf.o fprintf.o \
  159.     sprintf.o vprintf.o vfprintf.o vsprintf.o rename.o scanf.o sscanf.o \
  160.     fscanf.o fgets.o gets.o ungetc.o setbuffe.o setmode.o tmpfile.o rmtmp.o \
  161.     input.o output.o newstrea.o tmpbuf.o fseekhdr.o seekhdr.o isterm.o \
  162.     crlf.o fsetmode.o _sopen.o chsize.o fsopen.o umask.o utime.o utimes.o \
  163.     vscanf.o vfscanf.o vsscanf.o flushstr.o ead.o eadadd.o eadcopy.o eadfea.o \
  164.     eadread.o eadsort.o eadwrite.o eaerrno.o eafree.o eaget.o eaput.o \
  165.     earemove.o eawrite.o
  166.     -$(AR) d $(LIBC) __.SYMDEF
  167.     $(AR) r $(LIBC) *.o
  168.     $(AR) s $(LIBC)
  169.  
  170. $(MT)io1.c: _fopen.c _sopen.c access.c chmod.c chsize.c clearerr.c \
  171.     close.c creat.c crlf.c dup.c dup2.c ead.c eadadd.c eadcopy.c \
  172.     eadfea.c eadread.c eadsort.c eadwrite.c eaerrno.c eafree.c eaget.c \
  173.     eaput.c earemove.c eawrite.c eof.c fbuf.c fclose.c \
  174.     fcloseal.c fcntl.c fdopen.c fflush.c fgetc.c fgetchar.c fgetpos.c \
  175.     fgets.c fileleng.c fill.c flush.c flushall.c flushstr.c fopen.c \
  176.     fprintf.c fputc.c fputchar.c fputs.c fread.c freopen.c fscanf.c fseek.c \
  177.     fseekhdr.c fsetmode.c fsetpos.c fsopen.c fstat.c fsync.c ftell.c \
  178.     ftruncat.c fwrite.c gets.c getw.c includes.c input.c ioctl.c \
  179.     iodata.c isatty.c isterm.c lseek.c mktemp.c newstrea.c open.c \
  180.     output.c pclose.c pipe.c popen.c printf.c puts.c putw.c read.c \
  181.     remove.c rename.c rewind.c rmtmp.c scanf.c seekhdr.c select.c \
  182.     setbuf.c setbuffe.c setmode.c setvbuf.c sopen.c sprintf.c sscanf.c \
  183.     stat.c stdio.c tell.c tmpbuf.c tmpfile.c truncate.c umask.c \
  184.     ungetc.c unlink.c utime.c utimes.c vfprintf.c vfscanf.c vprintf.c \
  185.     vscanf.c vsprintf.c vsscanf.c write.c
  186.     emxcat -o $@ includes.c *.c
  187.  
  188. $(MT)io2.s: binmode.s
  189.     emxcat -o $@ *.s
  190.  
  191. mt: $(MT)io1.c $(MT)io2.s
  192.