home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Amiga / Magazine / Dossier-LaTeX / AmiWeb2C.lha / source / web2c-6.1 / web2c / lib / SMakefile < prev    next >
Makefile  |  1995-04-11  |  5KB  |  141 lines

  1. # This file makes the global library modules.
  2. # It is appropriate for the SAS/C Development System Version 6.X by
  3. # SAS Institute, Cary NC.  March 23, 1995, Andreas Scherer.
  4.  
  5. CC = sc
  6. WMERGE = wmerge
  7. MAKE = smake
  8.  
  9. DEFS = define=_STRICT_ANSI
  10. CFLAGS = math=ieee noicons optimize
  11. CPPFLAGS = idir=../lib idir=../.. $(DEFS) $(LIB20)
  12.  
  13. AR = oml
  14. ARFLAGS = R
  15.  
  16. # Name of the file we make.
  17. lib = lib.lib
  18. lib_20 = lib_20.lib
  19.  
  20. # We don't make `openinout.o' or `texmf.o', since TeX and Metafont need
  21. # to use different routine names, hence they need different .o files.
  22. objs = alloca.o eofeoln.o fprintreal.o getopt.o getopt1.o inputint.o \
  23.     main.o ourpaths.o strpascal.o uexit.o version.o xfopen-pas.o zround.o
  24.  
  25. .SUFFIXES: .o .c
  26. .c.o:
  27.     $(CC) $(CPPFLAGS) $(CFLAGS) $*.c
  28.  
  29. default: all
  30. triptrap: all
  31.  
  32. all: $(lib) $(lib_20) andysource
  33.  
  34. andysource: andyconfig.h andycpascal.h andyourpaths.h andyopeninout.c \
  35.     andytexmf.h andytexmf.c andytexmfmem.h
  36.  
  37. library: $(objs)
  38.  
  39. $(lib): stamp-no20
  40. $(lib_20): stamp-20
  41.  
  42. stamp-no20:
  43.     - delete $(lib) \#?.o stamp-no20
  44.     $(MAKE) library
  45.     $(AR) $(lib) $(ARFLAGS) $(objs)
  46.     echo "" > stamp-no20
  47.  
  48. stamp-20:
  49.     - delete $(lib_20) \#?.o stamp-20
  50.     $(MAKE) LIB20=cpu=68020 library
  51.     $(AR) $(lib_20) $(ARFLAGS) $(objs)
  52.     echo "" > stamp-20
  53.  
  54. alloca.o:    andyalloca.o
  55.     copy andyalloca.o alloca.o
  56. andyalloca.o:    andyalloca.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  57. andyalloca.c:    alloca.c alloca.ch
  58.     $(WMERGE) alloca.c alloca.ch andyalloca.c
  59. eofeoln.o:    andyeofeoln.o
  60.     copy andyeofeoln.o eofeoln.o
  61. andyeofeoln.o:    andyeofeoln.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  62. andyeofeoln.c:    eofeoln.c eofeoln.ch
  63.     $(WMERGE) eofeoln.c eofeoln.ch andyeofeoln.c
  64. fprintreal.o:        andyfprintreal.o
  65.     copy andyfprintreal.o fprintreal.o
  66. andyfprintreal.o:    andyfprintreal.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  67. andyfprintreal.c:    fprintreal.c fprintreal.ch
  68.     $(WMERGE) fprintreal.c fprintreal.ch andyfprintreal.c
  69. getopt.o:    andygetopt.o
  70.     copy andygetopt.o getopt.o
  71. andygetopt.o:    andygetopt.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  72. andygetopt.c:    getopt.c getopt.ch
  73.     $(WMERGE) getopt.c getopt.ch andygetopt.c
  74. getopt1.o:    andygetopt1.o
  75.     copy andygetopt1.o getopt1.o
  76. andygetopt1.o:    andygetopt1.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  77. andygetopt1.c:    getopt1.c getopt1.ch
  78.     $(WMERGE) getopt1.c getopt1.ch andygetopt1.c
  79. inputint.o:    andyinputint.o
  80.     copy andyinputint.o inputint.o
  81. andyinputint.o:    andyinputint.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  82. andyinputint.c:    inputint.c inputint.ch
  83.     $(WMERGE) inputint.c inputint.ch andyinputint.c
  84. main.o:        andymain.o
  85.     copy andymain.o main.o
  86. andymain.o:    andymain.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  87. andymain.c:    main.c main.ch
  88.     $(WMERGE) main.c main.ch andymain.c
  89. ourpaths.o:    andyourpaths.o
  90.     copy andyourpaths.o ourpaths.o
  91. andyourpaths.o:    andyourpaths.c andyconfig.h getopt.h andyourpaths.h \
  92.     ../../kpathsea/paths.h c-auto.h
  93. andyourpaths.c: ourpaths.c ourpaths.ch
  94.     $(WMERGE) ourpaths.c ourpaths.ch andyourpaths.c
  95. strpascal.o:        andystrpascal.o
  96.     copy andystrpascal.o strpascal.o
  97. andystrpascal.o:    andystrpascal.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  98. andystrpascal.c:    strpascal.c strpascal.ch
  99.     $(WMERGE) strpascal.c strpascal.ch andystrpascal.c
  100. uexit.o:    andyuexit.o
  101.     copy andyuexit.o uexit.o
  102. andyuexit.o:    andyuexit.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  103. andyuexit.c:    uexit.c uexit.ch
  104.     $(WMERGE) uexit.c uexit.ch andyuexit.c
  105. version.o:    version.c
  106. xfopen-pas.o:        andyxfopen-pas.o
  107.     copy andyxfopen-pas.o xfopen-pas.o
  108. andyxfopen-pas.o:    andyxfopen-pas.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  109. andyxfopen-pas.c:    xfopen-pas.c xfopen-pas.ch
  110.     $(WMERGE) xfopen-pas.c xfopen-pas.ch andyxfopen-pas.c
  111. zround.o:    andyzround.o
  112.     copy andyzround.o zround.o
  113. andyzround.o:    andyzround.c andyconfig.h getopt.h andyourpaths.h c-auto.h
  114. andyzround.c:    zround.c zround.ch
  115.     $(WMERGE) zround.c zround.ch andyzround.c
  116.  
  117. andyconfig.h:    config.h config.hch
  118.     $(WMERGE) config.h config.hch andyconfig.h
  119. andycpascal.h:    cpascal.h cpascal.hch
  120.     $(WMERGE) cpascal.h cpascal.hch andycpascal.h
  121. andyourpaths.h:    ourpaths.h ourpaths.hch
  122.     $(WMERGE) ourpaths.h ourpaths.hch andyourpaths.h
  123. andyopeninout.c: openinout.c openinout.ch
  124.     $(WMERGE) openinout.c openinout.ch andyopeninout.c
  125. andytexmf.h: texmf.h texmf.hch
  126.     $(WMERGE) texmf.h texmf.hch andytexmf.h
  127. andytexmf.c: texmf.c texmf.ch
  128.     $(WMERGE) texmf.c texmf.ch andytexmf.c
  129. andytexmfmem.h: texmfmem.h texmfmem.hch
  130.     $(WMERGE) texmfmem.h texmfmem.hch andytexmfmem.h
  131.  
  132. c-auto.h: c-auto.h.in c-auto.h.ch
  133.     $(WMERGE) c-auto.h.in c-auto.h.ch c-auto.h
  134.  
  135. clean:
  136.     - delete andy\#? \#?.(bak|o|lnk|info) stamp-\#?
  137.     $(MAKE) andysource
  138.  
  139. veryclean: clean
  140.     - delete $(lib) $(lib_20) c-auto.h andy\#?
  141.