diff options
Diffstat (limited to 'obsolete/support/png2pdf/makefile.msc')
-rw-r--r-- | obsolete/support/png2pdf/makefile.msc | 201 |
1 files changed, 201 insertions, 0 deletions
diff --git a/obsolete/support/png2pdf/makefile.msc b/obsolete/support/png2pdf/makefile.msc new file mode 100644 index 0000000000..9a519093bf --- /dev/null +++ b/obsolete/support/png2pdf/makefile.msc @@ -0,0 +1,201 @@ +all: progs
+#
+# Makefile to build png2pdf using Visual C++ 5.0 or above
+#
+
+#
+# START OF FIRST CONFIGURATION SECTION.
+#
+# You may need to customize this section.
+#
+
+# FLAGS FOR XCOPY TO OVERWRITE EXISTING FILES
+# Does xcopy need a special option to overwrite
+# files without prompting?
+XCOPYFL= /Y
+
+
+
+# INSTALLATION TARGET DIRECTORY
+# Where do you want to install the software?
+PROGRAMS=C:\Programs
+VENDOR=Krause
+PREFIX=$(PROGRAMS)\$(VENDOR)
+
+
+
+# LIBRARY LOCATION
+# Where do the libraries reside?
+# Toggle setting to build DLLs
+# LIBSRC=C:\P\DLL-LIB
+LIBSRC=C:\P\LIB-STT
+
+
+
+# COMPILER, LINKER AND LIBRARIAN PROGRAMS
+# Which programs to use for compiling and linking?
+CC=CL
+LD=LINK
+LIB=LIB
+
+
+
+# VISUAL C DIRECTORY
+# Where is Visual C?
+# Directories lib, include and bin must be beyound this.
+#
+VC=$(PROGRAMS)\Microsoft Visual Studio\Vc98
+# VC=D:\Programme\DevStudio\Vc
+
+
+
+# SYSTEM CONFIGURATION DIRECTORY
+SCD= -DSYSCONFDIR=\"C:\\ETC\"
+
+
+
+# # LIBBZ2
+# # Toggle this section to enable libbz2 usage.
+BZL_DEF=-DHAVE_BZLIB_H=0
+BZL_DIR=
+BZL_LIB=
+BZL_CP_CMD=echo Not necessary to copy DLL for libbz2
+# BZL_DEF=-DHAVE_BZLIB_H=1
+# BZL_DIR=-I$(LIBSRC)\Include
+# BZL_LIB=libbz2.lib
+# # Toggle next lines to use DLL
+# BZL_CP_CMD=echo Not necessary to copy DLL for libbz2
+# # BZL_CP_CMD=xcopy $(LIBSRC)\bin\libbz2.dll $(PREFIX)\bin\ /S $(XCOPYFL)
+
+#
+# zlib configuration
+#
+
+# ZLIB
+# zlib is required.
+ZL_DEF=-DHAVE_ZLIB_H=1
+ZL_DIR=-I$(LIBSRC)\Include
+# Toggle next lines to use DLL
+ZL_LIB=zlib.lib
+ZL_CP_CMD=echo Not necessary to copy DLL for zlib
+# ZL_LIB=zdll.lib
+# ZL_CP_CMD=xcopy $(LIBSRC)\bin\zlib1.dll $(PREFIX)\bin\ /S $(XCOPYFL)
+
+
+
+# PNGLIB
+# libpng is required too.
+PNG_DEF=-DHAVE_LIBPNG=1
+PNG_DIR=-I$(LIBSRC)\Include
+PNG_LIB=libpng.lib
+# # Toggle the next lines to use DLL
+PNG_CP_CMD=echo No need to copy a DLL for libpng
+# PNG_CP_CMD=xcopy $(LIBSRC)\bin\libpng.dll $(PREFIX)\bin\ /S $(XCOPYFL)
+
+
+
+#
+# END OF FIRST CONFIGURATION SECTION.
+#
+# NOTE: There is a second configuration section at
+# the end of this file. You may need to customize
+# this section too.
+#
+
+
+
+#
+# START OF FIXED OPTIONS SECTION
+#
+LIBS= $(BZL_LIB) $(ZL_LIB) $(PNG_LIB) dkdll.lib
+
+DLLF1= /DLL /nologo /RELEASE /INCREMENTAL:NO /PDB:NONE
+DLLF2= /SUBSYSTEM:CONSOLE /MACHINE:I386
+DLLF3= /LIBPATH:. /LIBPATH:"$(VC)\LIB" /LIBPATH:"$(LIBSRC)\LIB" /LIBPATH:"$(PREFIX)\lib"
+DLLF4= kernel32.lib user32.lib advapi32.lib gdi32.lib
+DLLFLAGS= $(DLLF1) $(DLLF2) $(DLLF3) $(DLLF4)
+
+EXEF1= /nologo /RELEASE /INCREMENTAL:NO
+EXEF1= /SUBSYSTEM:CONSOLE /MACHINE:I386
+EXEF3= /LIBPATH:. /LIBPATH:"$(VC)\LIB" /LIBPATH:"$(LIBSRC)\LIB" /LIBPATH:"$(PREFIX)\lib"
+EXEF4= kernel32.lib user32.lib advapi32.lib gdi32.lib
+EXEFLAGS= $(EXEF1) $(EXEF2) $(EXEF3) $(EXEF4)
+
+CDLLRT= /MD /GD
+CSTTRT= /MT
+CDEF1= /O2 /W3 /D "WIN32" /D "_WIN32" /D "NDEBUG" /D "_CONSOLE" /QI0f /QIfdiv
+CDEF2= -I. -I.. -I"$(PREFIX)\include"
+CDEF3= $(BZL_DEF) $(BZL_DIR) $(ZL_DEF) $(ZL_DIR) $(CRYPTO_DEF) $(CRYPTO_DIR)
+
+CDLLFLAGS= /nologo $(CDLLRT) $(CDEF1) $(CDEF2) $(CDEF3)
+CSTTFLAGS= /nologo $(CSTTRT) $(CDEF1) $(CDEF2) $(CDEF3)
+
+clean:
+ -ERASE *.obj
+ -ERASE *.lib
+ -ERASE *.dll
+ -ERASE *.exe
+
+#
+# END OF FIXED OPTIONS SECTION
+#
+
+
+
+#
+# START OF PROJECT SECTION
+#
+
+
+progs: png2pdf.exe
+
+PNG2PDFOBJ= png2pdfm.obj png2pdf.obj
+
+png2pdf.exe: $(PNG2PDFOBJ)
+ $(LD) $(EXEFLAGS) /out:png2pdf.exe $(PNG2PDFOBJ) $(LIBS)
+
+
+install: all
+ -mkdir $(PREFIX)
+ -mkdir $(PREFIX)\include
+ -mkdir $(PREFIX)\bin
+ -mkdir $(PREFIX)\lib
+ -mkdir $(PREFIX)\man
+ -mkdir $(PREFIX)\docu
+ -mkdir $(PREFIX)\docu\png2pdf
+ xcopy *.exe $(PREFIX)\bin\ $(XCOPYFL)
+ -xcopy man\* $(PREFIX)\man\ /S $(XCOPYFL)
+ -xcopy DOCU\png2pdf.pdf $(PREFIX)\docu\png2pdf\ /S $(XCOPYFL)
+ -mkdir lib
+ stc png2pdf.str share\png2pdf
+ xcopy share\png2pdf\en\* share\png2pdf\ $(XCOPYFL)
+ xcopy share\* $(PREFIX)\share\ /S /Y
+ -$(ZL_CP_CMD)
+ -$(BZL_CP_CMD)
+ -$(PNG_CP_CMD)
+
+#
+# END OF PROJECT SECTION
+#
+
+
+
+#
+# START OF SECOND CONFIGURATION SECTION
+#
+
+
+
+# COMPILING C MODULES
+# Toggle this section to build DLL
+.c.obj:
+ $(CC) $(CSTTFLAGS) /c $*.c
+# .c.obj:
+# $(CC) $(CDLLFLAGS) /c $*.c
+
+
+
+#
+# END OF SECOND CONFIGURATION SECTION
+#
+
|