/jcl/source/windows/obj/bzip2/win32/makefile.mak
Makefile | 106 lines | 32 code | 17 blank | 57 comment | 0 complexity | 26c3c46954580fbba55eff4215b955ae MD5 | raw file
Possible License(s): BSD-3-Clause
1# 2# makefile to make bzip2 .obj files using Borland's C++ compiler bcc32 3# derived from a makefile generated by BCB6' bpr2mak 4# 5# if bzip2 source directory is different from ..\..\..\..\..\..\thirdparty\bzip2\bzip2-1.0.6, use 6# "make -Dbzip2src=<path to bzip2 sources>" to tell make where to find the 7# source files 8# 9# Make.exe needs to reside in the same directory as bcc32.exe. 10# For example, if you have Borlands free C++ v. 5.5 compiler (available from 11# http://www.borland.com/products/downloads/download_cbuilder.html#) installed: 12# 13# >C:\Program Files\Borland\BCC55\Bin\make 14# 15# or, if you want to use C++ Builder 6: 16# 17# >C:\Program Files\Borland\CBuilder6\Bin\make 18# 19# or, if you want to use Borland Developer Studio 2006: 20# 21# >C:\Program files\Borland\BDS\4.0\bin\make 22# 23# To choose the target CPU, pass "-DCPU=n" as option to make, with n being a 24# number between 3 and 6, with the following meanings: 25# 26# n Target CPU (or compatible) 27# -------------------------------- 28# 3 80386 29# 4 80486 30# 5 Pentium (default) 31# 6 Pentium Pro 32# 33# Robert Rossmair, 2004-10-16 34# 35 36CallingConvention = -pc 37 38!if !$d(BCB) 39BCB = $(MAKEDIR)\.. 40!endif 41 42BCC = $(BCB) 43 44!if !$d(bzip2src) 45bzip2src = ..\..\..\..\..\..\thirdparty\bzip2\bzip2-1.0.6 46!endif 47 48!if !$d(CPU) 49CPU = 5 # Pentium 50!endif 51 52# --------------------------------------------------------------------------- 53# IDE SECTION 54# --------------------------------------------------------------------------- 55# The following section of the project makefile is managed by the BCB IDE. 56# It is recommended to use the IDE to change any of the values in this 57# section. 58# --------------------------------------------------------------------------- 59 60VERSION = BCB.06.00 61# --------------------------------------------------------------------------- 62OBJFILES = .\bzlib.obj .\randtable.obj .\crctable.obj .\compress.obj \ 63 .\decompress.obj .\huffman.obj .\blocksort.obj 64# --------------------------------------------------------------------------- 65DEBUGLIBPATH = $(BCB)\lib\debug 66RELEASELIBPATH = $(BCB)\lib\release 67USERDEFINES = 68SYSDEFINES = BZ_EXPORT;BZ_NO_STDIO 69INCLUDEPATH = $(bzip2src);$(BCC)\include;$(BCB)\include\vcl 70# LIBPATH = $(bzip2src) 71WARNINGS= -w-par -w-aus 72PATHC = .;$(bzip2src) 73# PATHOBJ = .;$(LIBPATH) 74# --------------------------------------------------------------------------- 75CFLAG1 = -O2 -Ve -X- -a8 -$(CPU) -b -d -k- -vi -tWM $(CallingConvention) 76 77# --------------------------------------------------------------------------- 78# MAKE SECTION 79# --------------------------------------------------------------------------- 80# This section of the project file is not used by the BCB IDE. It is for 81# the benefit of building from the command-line using the MAKE utility. 82# --------------------------------------------------------------------------- 83 84.autodepend 85# --------------------------------------------------------------------------- 86 87!if !$d(BCC32) 88BCC32 = bcc32 89!endif 90 91# --------------------------------------------------------------------------- 92!if $d(PATHC) 93.PATH.C = $(PATHC) 94!endif 95 96# --------------------------------------------------------------------------- 97bzip2: $(OBJFILES) 98 99# --------------------------------------------------------------------------- 100.c.obj: 101 $(BCC)\BIN\$(BCC32) -c $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< } 102# --------------------------------------------------------------------------- 103 104 105 106