ifndef CCALL
CCALL=$(CC) $(CFLAGS) $(CFLAGSB) $(CPPFLAGS) $(INCLUDES) -I..
endif
ifndef CXXALL
CXXALL=$(CXX) $(CXXFLAGS) $(CXXFLAGSB) $(CPPFLAGS) $(INCLUDES) -I..
endif
ifndef LDALL
LDALL=$(LDY) $(LDFLAGS) $(LIBS)
endif
ifndef CC
CC=gcc
endif
ifndef CXX
CXX=cl -TP
endif
ifndef LD
LD=$(CC)
endif
ifndef LDXX
LDXX=$(CXX)
endif
ifndef LDY
LDY=$(LD)
endif
ifndef CFLAGS
CFLAGS=-O2 -nologo -DW32TEX=1
endif
ifndef CXXFLAGS
CXXFLAGS=-O2 -nologo -DW32TEX=1
endif
ifndef GLOBFILES
GLOBFILES=Makefile Makedep
endif
ALL +=test.exe testfax.exe sam2p.exe ps_tiny.exe jpegdump.exe
TARGETS =test.exe testfax.exe sam2p.exe ps_tiny.exe jpegdump.exe
test_DS=test_main.cpp in_tga.cpp in_pnm.cpp in_bmp.cpp in_gif.cpp in_lbm.cpp in_xpm.cpp mapping.cpp minips.cpp encoder.cpp pts_lzw.c pts_fax.c pts_defl.c error.cpp image.cpp gensio.cpp snprintf.c gensi.cpp
test.exe: $(GLOBFILES) test_main.obj in_tga.obj in_pnm.obj in_bmp.obj in_gif.obj in_lbm.obj in_xpm.obj mapping.obj minips.obj encoder.obj pts_lzw.obj pts_fax.obj pts_defl.obj error.obj image.obj gensio.obj snprintf.obj gensi.obj
	$(LDALL) -Fetest.exe test_main.obj in_tga.obj in_pnm.obj in_bmp.obj in_gif.obj in_lbm.obj in_xpm.obj mapping.obj minips.obj encoder.obj pts_lzw.obj pts_fax.obj pts_defl.obj error.obj image.obj gensio.obj snprintf.obj gensi.obj
	@echo "Created executable file: test (size: `perl -e 'print -s "test"'`)."
test.assert.exe: $(GLOBFILES) $(test_DS)
	$(CXD_assert) -Fe$@ $(CXDFAL) $(test_DS)
test.no.exe: $(GLOBFILES) $(test_DS)
	$(CXD_no) -Fe$@ $(CXDFAL) $(test_DS)
test.yes.exe: $(GLOBFILES) $(test_DS)
	$(CXD_yes) -Fe$@ $(CXDFAL) $(test_DS)
test.checker.exe: $(GLOBFILES) $(test_DS)
	$(CXD_checker) -Fe$@ $(CXDFAL) $(test_DS)
testfax_DS=testfax_main.c pts_fax.c
testfax.exe: $(GLOBFILES) testfax_main.obj pts_fax.obj
	$(LDALL) -Fe$@ testfax_main.obj pts_fax.obj
	@echo "Created executable file: testfax (size: `perl -e 'print -s "testfax"'`)."
testfax.assert.exe: $(GLOBFILES) $(testfax_DS)
	$(CXD_assert) -Fe$@ $(CXDFAL) $(testfax_DS)
testfax.no.exe: $(GLOBFILES) $(testfax_DS)
	$(CXD_no) -Fe$@ $(CXDFAL) $(testfax_DS)
testfax.yes.exe: $(GLOBFILES) $(testfax_DS)
	$(CXD_yes) -Fe$@ $(CXDFAL) $(testfax_DS)
testfax.checker.exe: $(GLOBFILES) $(testfax_DS)
	$(CXD_checker) -Fe$@ $(CXDFAL) $(testfax_DS)
sam2p_DS=sam2p_main.cpp appliers.cpp crc32.c out_gif.cpp in_ps.cpp in_tga.cpp in_pnm.cpp in_bmp.cpp in_gif.cpp in_lbm.cpp in_xpm.cpp mapping.cpp in_pcx.cpp in_jai.cpp in_png.cpp in_jpeg.cpp in_tiff.cpp rule.cpp minips.cpp encoder.cpp pts_lzw.c pts_fax.c pts_defl.c error.cpp image.cpp gensio.cpp snprintf.c gensi.cpp

sam2p.exe: $(GLOBFILES) sam2p_main.obj appliers.obj crc32.obj out_gif.obj in_ps.obj in_tga.obj in_pnm.obj in_bmp.obj in_gif.obj in_lbm.obj in_xpm.obj mapping.obj in_pcx.obj in_jai.obj in_png.obj in_jpeg.obj in_tiff.obj rule.obj minips.obj encoder.obj pts_lzw.obj pts_fax.obj pts_defl.obj error.obj image.obj gensio.obj snprintf.obj gensi.obj
	$(LDALL) -Fe$@ sam2p_main.obj appliers.obj crc32.obj out_gif.obj in_ps.obj in_tga.obj in_pnm.obj in_bmp.obj in_gif.obj in_lbm.obj in_xpm.obj mapping.obj in_pcx.obj in_jai.obj in_png.obj in_jpeg.obj in_tiff.obj rule.obj minips.obj encoder.obj pts_lzw.obj pts_fax.obj pts_defl.obj error.obj image.obj gensio.obj snprintf.obj gensi.obj ../kpathsea/libkpathsea.lib user32.lib advapi32.lib shell32.lib -link /manifest
	mt -manifest $@.manifest -outputresource:$@";"1
	@echo "Created executable file: sam2p (size: `perl -e 'print -s "sam2p"'`)."
sam2p.assert.exe: $(GLOBFILES) $(sam2p_DS)
	$(CXD_assert) -Fe$@ $(CXDFAL) $(sam2p_DS)
sam2p.no.exe: $(GLOBFILES) $(sam2p_DS)
	$(CXD_no) -Fe$@ $(CXDFAL) $(sam2p_DS)
sam2p.yes.exe: $(GLOBFILES) $(sam2p_DS)
	$(CXD_yes) -Fe$@ $(CXDFAL) $(sam2p_DS)
sam2p.checker.exe: $(GLOBFILES) $(sam2p_DS)
	$(CXD_checker) -Fe$@ $(CXDFAL) $(sam2p_DS)
ps_tiny_DS=ps_tiny.c
ps_tiny.exe: $(GLOBFILES) ps_tiny.obj
	$(LDALL) -Fe$@ ps_tiny.obj
	@echo "Created executable file: ps_tiny (size: `perl -e 'print -s "ps_tiny"'`)."
ps_tiny.assert.exe: $(GLOBFILES) $(ps_tiny_DS)
	$(CXD_assert) -Fe$@ $(CXDFAL) $(ps_tiny_DS)
ps_tiny.no.exe: $(GLOBFILES) $(ps_tiny_DS)
	$(CXD_no) -Fe$@ $(CXDFAL) $(ps_tiny_DS)
ps_tiny.yes.exe: $(GLOBFILES) $(ps_tiny_DS)
	$(CXD_yes) -Fe$@ $(CXDFAL) $(ps_tiny_DS)
ps_tiny.checker.exe: $(GLOBFILES) $(ps_tiny_DS)
	$(CXD_checker) -Fe$@ $(CXDFAL) $(ps_tiny_DS)
jpegdump_DS=jpegdump_main.cpp
jpegdump.exe: $(GLOBFILES) jpegdump_main.obj
	$(LDALL) -Fe$@ jpegdump_main.obj
	@echo "Created executable file: jpegdump (size: `perl -e 'print -s "jpegdump"'`)."
jpegdump.assert.exe: $(GLOBFILES) $(jpegdump_DS)
	$(CXD_assert) -Fe$@ $(CXDFAL) $(jpegdump_DS)
jpegdump.no.exe: $(GLOBFILES) $(jpegdump_DS)
	$(CXD_no) -Fe$@ $(CXDFAL) $(jpegdump_DS)
jpegdump.yes.exe: $(GLOBFILES) $(jpegdump_DS)
	$(CXD_yes) -Fe$@ $(CXDFAL) $(jpegdump_DS)
jpegdump.checker.exe: $(GLOBFILES) $(jpegdump_DS)
	$(CXD_checker) -Fe$@ $(CXDFAL) $(jpegdump_DS)

image.obj: $(GLOBFILES) image.cpp image.hpp config2.h \
  config.h gensi.hpp \
  error.hpp \
  gensio.hpp
	$(CXXALL) -c image.cpp
in_tiff.obj: $(GLOBFILES) in_tiff.cpp image.hpp config2.h \
  config.h gensi.hpp \
  error.hpp \
  gensio.hpp \
  helpere.hpp
	$(CXXALL) -c in_tiff.cpp
in_jpeg.obj: $(GLOBFILES) in_jpeg.cpp image.hpp config2.h  \
  gensio.hpp
	$(CXXALL) -c in_jpeg.cpp
testfax_main.obj: $(GLOBFILES) testfax_main.c pts_fax.h config2.h
	$(CCALL) -c testfax_main.c
appliers.obj: $(GLOBFILES) appliers.cpp rule.hpp config2.h  \
  minips.hpp error.hpp encoder.hpp in_jai.hpp crc32.h
	$(CXXALL) -c appliers.cpp
test_main.obj: $(GLOBFILES) test_main.cpp gensi.hpp config2.h \
  error.hpp encoder.hpp minips.hpp mapping.hpp
	$(CXXALL) -c test_main.cpp
in_pcx.obj: $(GLOBFILES) in_pcx.cpp config2.h  \
  gensio.hpp
	$(CXXALL) -c in_pcx.cpp
in_xpm.obj: $(GLOBFILES) in_xpm.cpp image.hpp config2.h  \
  error.hpp xpmc.h
	$(CXXALL) -c in_xpm.cpp
in_tga.obj: $(GLOBFILES) in_tga.cpp image.hpp config2.h  \
  gensio.hpp  \
   at_bitmap.h
	$(CXXALL) -c in_tga.cpp
pts_defl.obj: $(GLOBFILES) pts_defl.c pts_defl.h
	$(CCALL) -c pts_defl.c
mapping.obj: $(GLOBFILES) mapping.cpp mapping.hpp config2.h \
  gensi.hpp
	$(CXXALL) -c mapping.cpp
c_lgcc3.obj: $(GLOBFILES) c_lgcc3.cpp
	$(CXXALL) -c c_lgcc3.cpp
crc32.obj: $(GLOBFILES) crc32.c crc32.h config2.h  \
   config.h
	$(CCALL) -c crc32.c
gensi.obj: $(GLOBFILES) gensi.cpp gensi.hpp config2.h
	$(CXXALL) -c gensi.cpp
gensio.obj: $(GLOBFILES) gensio.cpp gensio.hpp config2.h  \
   snprintf.h
	$(CXXALL) -c gensio.cpp
in_lbm.obj: $(GLOBFILES) in_lbm.cpp image.hpp config2.h
	$(CXXALL) -c in_lbm.cpp
pts_lzw.obj: $(GLOBFILES) pts_lzw.c
	$(CCALL) -c pts_lzw.c
StdAfx.obj: $(GLOBFILES) StdAfx.cpp stdafx.h
	$(CXXALL) -c StdAfx.cpp
in_png.obj: $(GLOBFILES) in_png.cpp image.hpp config2.h  \
  gensio.hpp
	$(CXXALL) -c in_png.cpp
in_bmp.obj: $(GLOBFILES) in_bmp.cpp image.hpp config2.h  \
  gensio.hpp  \
   at_bitmap.h
	$(CXXALL) -c in_bmp.cpp
vcsam2p.obj: $(GLOBFILES) vcsam2p.cpp config2.h  \
  main.hpp stdafx.h  \
   resource.h
	$(CXXALL) -c vcsam2p.cpp
sam2p_main.obj: $(GLOBFILES) sam2p_main.cpp gensi.hpp config2.h \
  error.hpp encoder.hpp minips.hpp rule.hpp main.hpp in_jai.hpp \
   bts2.tth
	$(CXXALL) -c sam2p_main.cpp
jpegdump_main.obj: $(GLOBFILES) jpegdump_main.cpp config2.h
	$(CXXALL) -c jpegdump_main.cpp
pts_fax.obj: $(GLOBFILES) pts_fax.c pts_fax.h config2.h  \
   config.h
	$(CCALL) -c pts_fax.c
in_jai.obj: $(GLOBFILES) in_jai.cpp image.hpp config2.h  \
  in_jai.hpp gensio.hpp
	$(CXXALL) -c in_jai.cpp
in_ps.obj: $(GLOBFILES) in_ps.cpp image.hpp config2.h  \
  gensio.hpp
	$(CXXALL) -c in_ps.cpp
in_pnm.obj: $(GLOBFILES) in_pnm.cpp image.hpp config2.h  \
  gensio.hpp
	$(CXXALL) -c in_pnm.cpp
minips.obj: $(GLOBFILES) minips.cpp minips.hpp config2.h  \
  gensio.hpp
	$(CXXALL) -c minips.cpp
out_gif.obj: $(GLOBFILES) out_gif.cpp image.hpp config2.h
	$(CXXALL) -c out_gif.cpp
rule.obj: $(GLOBFILES) rule.cpp rule.hpp config2.h  \
  minips.hpp error.hpp
	$(CXXALL) -c rule.cpp
cgif.obj: $(GLOBFILES) cgif.c
	$(CCALL) -c cgif.c
ps_tiny.obj: $(GLOBFILES) ps_tiny.c  \
   config.h
	$(CCALL) -c ps_tiny.c
encoder.obj: $(GLOBFILES) encoder.cpp encoder.hpp config2.h \
  gensio.hpp  \
  pts_fax.h pts_lzw.h
	$(CXXALL) -c encoder.cpp
in_gif.obj: $(GLOBFILES) in_gif.cpp config2.h  \
  gensi.hpp error.hpp gensio.hpp
	$(CXXALL) -c in_gif.cpp
c_lgcc.obj: $(GLOBFILES) c_lgcc.cpp
	$(CXXALL) -c c_lgcc.cpp
error.obj: $(GLOBFILES) error.cpp error.hpp config2.h
	$(CXXALL) -c error.cpp
snprintf.obj: $(GLOBFILES) snprintf.c snprintf.h config2.h
	$(CCALL) -c snprintf.c
