LINK = link
RC = rc
+# -Gf saves about 7k bytes in EXE file
+
+# For production (-Bd show compiler passes)
+# ASSUMING WE WORK WITH MS COMPILER AND LINKER ONLY use -Gy and -Gf
+# CFLAGS=-c -DDOS -DMSDOS -DPHARLAP -DTeX -DMYDEBUG -Ilib -Ox -Gy -Gf -W3
+# 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 \
/I"kpathsea" /I"libharu/include" /I"libharu/win32/include" /I"zlib" \
- /I"libmd5" /I"libtoua/ptexenc"
+ /I"libmd5"
+# Debugging version
+# CFLAGS=/c /Ge /Gy /Gf /Od /Zi /W4 /DMSDOS /DTeX /DPHARLAP /Ilib /YX
+# NOTE: -Ox => -Ogityb1 -Gs
+
+# Link with MS LINK
+# LFLAGS=@yandytex.nt /MAP lib\libdos.lib
+# Release version
+# LFLAGS=/MAP lib\libdos.lib
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 = yandytex.obj itex.obj openinou.obj subroute.obj local.obj \
tex0.obj tex1.obj tex2.obj tex3.obj tex4.obj \
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_backend_pdf.obj: yandy_backend_pdf.c
$(CC) $(CFLAGS) yandy_backend_pdf.c
rc yandytex.rc
yandytex.obj: yandytex.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
$(CC) /DINITEX /DINI $(CFLAGS) yandytex.c
itex.obj: itex.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
$(CC) /DINITEX $(CFLAGS) itex.c
openinou.obj: openinou.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
$(CC) $(CFLAGS) openinou.c
subroute.obj: subroute.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
$(CC) $(CFLAGS) subroute.c
local.obj: local.c \
- texd.h coerce.h yandy_macros.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 coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex1.obj: tex1.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex2.obj: tex2.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex3.obj: tex3.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex4.obj: tex4.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex5.obj: tex5.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex6.obj: tex6.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex7.obj: tex7.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex8.obj: tex8.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
tex9.obj: tex9.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
yandy_pool.obj: yandy_pool.c \
- texd.h coerce.h yandy_macros.h
+ texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
.SUFFIXES:
.SUFFIXES: .obj .c