X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Ftexsourc%2Fmakefile;h=ab1da2243d10e3aba0ecbf5a95d66d86265dc259;hb=00a22860bae9245fa63636a16ce042a3898ad686;hp=3e609e79ca7518ba99204f68606e7f6633b25994;hpb=9088d7e251adcd0007e395c7b06857ecfdf2e655;p=putex%2Fputex.git diff --git a/src/texsourc/makefile b/src/texsourc/makefile index 3e609e7..ab1da22 100644 --- a/src/texsourc/makefile +++ b/src/texsourc/makefile @@ -5,13 +5,6 @@ # Makefile for Y&YTeX -# TO SET UP DEBUGGING INFO: -# (1) add -Zi to CFLAGS for CL -# (2) add /MAP /DEBUG /PDB:yandytex.pdb for LINK - -# NOTE: full optimization causes some problems especially in TEX5.C & TEX6.C -# NOTE: assuming no aliasing causes some problems especially in TEXMF.C - CC = cl LINK = link RC = rc @@ -24,9 +17,11 @@ RC = rc # CFLAGS=-c -DDOS -DMSDOS -DPHARLAP -DTeX -DMYDEBUG -Ilib -YX -Ox -Ge -Gy -Gf -W4 # Release version # CFLAGS=/c /Ge /Gy /Gf /Ox /W4 /DMSDOS /DTeX /DPHARLAP /DNDEBUG /Ilib /YX -CFLAGS=/nologo /c /MT /GF /Gy /Ox /W4 /DMSDOS /DTeX /DPHARLAP /DNDEBUG +CFLAGS=/nologo /c /MT /GF /Gy /Ox /W4 /DMSDOS /DTeX /DPHARLAP /DNDEBUG \ + /I"kpathsea" /I"libharu/include" /I"libharu/win32/include" /I"zlib" \ + /I"libmd5" # Debugging version -# CFLAGS=/c /Ge /Gy /Gf /Od /Zi /W4 /DMSDOS /DTeX /DPHARLAP /Ilib /YX +# CFLAGS=/c /Ge /Gy /Gf /Od /Zi /W4 /DMSDOS /DTeX /DPHARLAP /Ilib /YX # NOTE: -Ox => -Ogityb1 -Gs @@ -34,92 +29,90 @@ CFLAGS=/nologo /c /MT /GF /Gy /Ox /W4 /DMSDOS /DTeX /DPHARLAP /DNDEBUG # LFLAGS=@yandytex.nt /MAP lib\libdos.lib # Release version # LFLAGS=/MAP lib\libdos.lib -LFLAGS=/MAP +LFLAGS=/NOLOGO /MAP # /MACHINE:X86 # debugging version # LFLAGS=@yandytex.nt /MAP /DEBUG /PDB:yandytex.pdb lib\libdos.lib # LFLAGS=/MAP /DEBUG /PDB:yandytex.pdb -objs = texmf.obj itex.obj openinou.obj subroute.obj local.obj \ +objs = yandytex.obj itex.obj openinou.obj subroute.obj local.obj \ tex0.obj tex1.obj tex2.obj tex3.obj tex4.obj \ tex5.obj tex6.obj tex7.obj tex8.obj tex9.obj \ - yandy_pool.obj yandytex.res md5.obj md5file.obj + yandy_pool.obj yandytex.res md5.obj yandy_pdf_backend.obj # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### -# # LIBHARU -# lib/libhpdf/libhpdf.lib lib/zlib/zlib.lib -texmf.exe: $(objs) - $(LINK) $(LFLAGS) texmf itex openinou subroute local \ +yandytex.exe: $(objs) + $(LINK) $(LFLAGS) yandytex itex openinou subroute local \ tex0 tex1 tex2 tex3 tex4 tex5 tex6 tex7 tex8 tex9 \ - yandy_pool yandytex.res md5 md5file kpathsea\kpathsea.lib - copy texmf.exe yandytex.exe - del ..\yandy\bin\texmf.exe - copy texmf.exe ..\yandy\bin\texmf.exe + yandy_pool yandytex.res md5 yandy_pdf_backend \ + kpathsea\kpathsea.lib libharu\libhpdf.lib libpng\libpng.lib zlib\zlib.lib + del ..\yandy\bin\yandytex.exe + copy yandytex.exe ..\yandy\bin\yandytex.exe # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### +yandy_pdf_backend.obj: yandy_pdf_backend.c + $(CC) $(CFLAGS) yandy_pdf_backend.c + md5.obj: libmd5\md5.c $(CC) -Ilibmd5 $(CFLAGS) libmd5\md5.c -md5file.obj: md5file.c - $(CC) -Ilibmd5 $(CFLAGS) md5file.c - yandytex.res: yandytex.rc rc yandytex.rc -texmf.obj: texmf.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h - $(CC) /DINITEX /DINI $(CFLAGS) texmf.c +yandytex.obj: yandytex.c \ + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h + $(CC) /DINITEX /DINI $(CFLAGS) yandytex.c itex.obj: itex.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h $(CC) /DINITEX $(CFLAGS) itex.c openinou.obj: openinou.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h $(CC) $(CFLAGS) openinou.c subroute.obj: subroute.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h - $(CC) $(CFLAGS) subroute.c + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h + $(CC) $(CFLAGS) subroute.c local.obj: local.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h $(CC) /DINITEX $(CFLAGS) local.c # NOTE: cannot compile tex5.c and tex6.c with full optimizations ... tex0.obj: tex0.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex1.obj: tex1.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex2.obj: tex2.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex3.obj: tex3.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex4.obj: tex4.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex5.obj: tex5.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex6.obj: tex6.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex7.obj: tex7.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex8.obj: tex8.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h tex9.obj: tex9.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h yandy_pool.obj: yandy_pool.c \ - texd.h texmf.h texmfmem.h coerce.h lib.h config.h common.h + texd.h texmf.h texmfmem.h coerce.h yandy_macros.h .SUFFIXES: .SUFFIXES: .obj .c