# # makefile to make zlib .obj files using Borland's C++ compiler bcc32 # derived from a makefile generated by BCB6' bpr2mak # # if zlib source directory is different from $(JLC)\source\zlib-1.2.2, use # "make -Dzlibsrc=" to tell make where to find the # source files # # Make.exe needs to reside in the same directory as bcc32.exe. # For example, if you have Borlands free C++ v. 5.5 compiler (available from # http://www.borland.com/products/downloads/download_cbuilder.html#) installed: # # >C:\Program Files\Borland\BCC55\Bin\make # # or, if you want to use C++ Builder 6: # # >C:\Program Files\Borland\CBuilder6\Bin\make # # To choose the target CPU, pass "-DCPU=n" as option to make, with n being a # number between 3 and 6, with the following meanings: # # n Target CPU (or compatible) # -------------------------------- # 3 80386 # 4 80486 # 5 Pentium (default) # 6 Pentium Pro # # Note: This assumes -DZEXPORT=__fastcall -DZEXPORTVA=__cdecl # # Robert Rossmair, 2004-10-16 # CallingConvention = -pr -DZEXPORT=__fastcall -DZEXPORTVA=__cdecl !if !$d(BCB) BCB = $(MAKEDIR)\.. !endif BCC = $(BCB) !if !$d(zlibsrc) zlibsrc = ..\..\zlib-1.2.2 !endif !if !$d(CPU) CPU = 5 # Pentium !endif # --------------------------------------------------------------------------- # IDE SECTION # --------------------------------------------------------------------------- # The following section of the project makefile is managed by the BCB IDE. # It is recommended to use the IDE to change any of the values in this # section. # --------------------------------------------------------------------------- VERSION = BCB.06.00 # --------------------------------------------------------------------------- OBJFILES = .\zutil.obj .\compress.obj .\crc32.obj .\deflate.obj .\gzio.obj \ .\infback.obj .\inffast.obj .\inflate.obj .\inftrees.obj .\trees.obj \ .\uncompr.obj .\adler32.obj RESFILES = RESDEPEN = $(RESFILES) LIBFILES = IDLFILES = IDLGENFILES = LIBRARIES = rtl.lib PACKAGES = rtl.bpi SPARELIBS = rtl.lib DEFFILE = OTHERFILES = # --------------------------------------------------------------------------- DEBUGLIBPATH = $(BCB)\lib\debug RELEASELIBPATH = $(BCB)\lib\release USERDEFINES = SYSDEFINES = NO_STRICT INCLUDEPATH = $(zlibsrc);$(BCC)\include;$(BCB)\include\vcl LIBPATH = $(zlibsrc) WARNINGS= -w-par -w-aus PATHCPP = .;$(zlibsrc) PATHASM = .; PATHPAS = .; PATHRC = .; PATHOBJ = .;$(LIBPATH) # --------------------------------------------------------------------------- CFLAG1 = -O2 -Ve -X- -a8 -$(CPU) -b -d -k- -vi -tWM $(CallingConvention) IDLCFLAGS = -I$(zlibsrc) -I$(BCC)\include -I$(BCB)\include\vcl -src_suffix cpp \ -boa PFLAGS = -$Y- -$L- -$I- -$D- -$A8 -v -M -JPHNE RFLAGS = AFLAGS = /mx /w2 /zn LFLAGS = # --------------------------------------------------------------------------- ALLOBJ = ALLRES = ALLLIB = # --------------------------------------------------------------------------- !ifdef IDEOPTIONS [Version Info] IncludeVerInfo=0 AutoIncBuild=0 MajorVer=1 MinorVer=0 Release=0 Build=0 Debug=0 PreRelease=0 Special=0 Private=0 DLL=0 [Version Info Keys] CompanyName= FileDescription= FileVersion=1.0.0.0 InternalName= LegalCopyright= LegalTrademarks= OriginalFilename= ProductName= ProductVersion=1.0.0.0 Comments= [Debugging] DebugSourceDirs=$(BCB)\source\vcl !endif # --------------------------------------------------------------------------- # MAKE SECTION # --------------------------------------------------------------------------- # This section of the project file is not used by the BCB IDE. It is for # the benefit of building from the command-line using the MAKE utility. # --------------------------------------------------------------------------- .autodepend # --------------------------------------------------------------------------- !if "$(USERDEFINES)" != "" AUSERDEFINES = -d$(USERDEFINES:;= -d) !else AUSERDEFINES = !endif !if !$d(BCC32) BCC32 = bcc32 !endif !if !$d(CPP32) CPP32 = cpp32 !endif !if !$d(DCC32) DCC32 = dcc32 !endif !if !$d(TASM32) TASM32 = tasm32 !endif !if !$d(LINKER) LINKER = ilink32 !endif !if !$d(BRCC32) BRCC32 = brcc32 !endif # --------------------------------------------------------------------------- !if $d(PATHCPP) .PATH.CPP = $(PATHCPP) .PATH.C = $(PATHCPP) !endif !if $d(PATHPAS) .PATH.PAS = $(PATHPAS) !endif !if $d(PATHASM) .PATH.ASM = $(PATHASM) !endif !if $d(PATHRC) .PATH.RC = $(PATHRC) !endif !if $d(PATHOBJ) .PATH.OBJ = $(PATHOBJ) !endif # --------------------------------------------------------------------------- zlib: $(OTHERFILES) $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE) # --------------------------------------------------------------------------- .pas.hpp: $(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< } .pas.obj: $(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< } .cpp.obj: $(BCC)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< } .c.obj: $(BCC)\BIN\$(BCC32) -c $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< } .c.i: $(BCC)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< } .cpp.i: $(BCC)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< } .asm.obj: $(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@ .rc.res: $(BCC)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $< # ---------------------------------------------------------------------------