home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-base.tgz / gcc-2.7.2.1-base.tar / fsf / gcc / config / winnt / headers.mak < prev    next >
Text File  |  1995-09-19  |  2KB  |  52 lines

  1. # Build the include directory.  The stamp files are stmp-* rather than
  2. # stamp-* so that mostlyclean does not force the include directory to
  3. # be rebuilt.
  4.  
  5.  
  6. # Copy in the headers provided with gcc.
  7. USER_H = $(srcdir)\ginclude\stdarg.h $(srcdir)\ginclude\stddef.h \
  8.     $(srcdir)\ginclude\varargs.h $(srcdir)\ginclude\va-alpha.h \
  9.     $(srcdir)\ginclude\va-h8300.h $(srcdir)\ginclude\va-i860.h \
  10.     $(srcdir)\ginclude\va-i960.h $(srcdir)\ginclude\va-mips.h \
  11.     $(srcdir)\ginclude\va-m88k.h $(srcdir)\ginclude\va-pa.h \
  12.     $(srcdir)\ginclude\va-pyr.h $(srcdir)\ginclude\va-sparc.h \
  13.     $(srcdir)\ginclude\va-clipper.h $(srcdir)\ginclude\va-spur.h \
  14.     $(srcdir)\ginclude\iso646.h \
  15.     $(srcdir)\ginclude\proto.h
  16.  
  17. # Build the include directory except for float.h (which depends upon
  18. # enquire).
  19.  
  20. stmp-int-hdrs: $(USER_H)
  21.     type $(srcdir)\limitx.h >xlimits.h
  22.     type $(srcdir)\glimits.h >>xlimits.h
  23.     type $(srcdir)\limity.h >>xlimits.h
  24.  
  25.     -mkdir include    
  26.     for %%f in ($(USER_H)) do copy %%f include
  27.     del include\limits.h
  28.     copy xlimits.h include\limits.h
  29.     del include\syslimits.h
  30.     copy $(srcdir)\gsyslimits.h include\syslimits.h
  31.     copy include\limits.h include\syslimits.h
  32.     del include\README
  33.     copy $(srcdir)\README-fixinc include\README
  34.     touch stmp-int-hdrs
  35.  
  36. stmp-headers: stmp-int-hdrs fixinc-nt.exe
  37.     fixinc-nt
  38.     touch stmp-headers
  39.  
  40. # Build float.h.
  41. stmp-float_h: libgcc.lib enquire.exe
  42.     -.\enquire -f > tmp-float.h
  43.     del include\float.h
  44.     copy tmp-float.h include\float.h
  45.     touch stmp-float_h
  46.  
  47. fixinc-nt.obj: $(srcdir)/config/winnt/fixinc-nt.c
  48.     cl -c -I. -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/config/winnt $(srcdir)/config/winnt/fixinc-nt.c
  49.  
  50. fixinc-nt.exe: fixinc-nt.obj dirent.obj
  51.     cl fixinc-nt.obj dirent.obj libc.lib kernel32.lib
  52.