annotate src/bzip2-1.0.6/makefile.msc @ 143:e95e00bdc3eb

Further win32 build updates
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 09 Jan 2017 13:51:38 +0000
parents 8a15ff55d9af
children
rev   line source
cannam@89 1 # Makefile for Microsoft Visual C++ 6.0
cannam@89 2 # usage: nmake -f makefile.msc
cannam@89 3 # K.M. Syring (syring@gsf.de)
cannam@89 4 # Fixed up by JRS for bzip2-0.9.5d release.
cannam@89 5
cannam@89 6 CC=cl
cannam@89 7 CFLAGS= -DWIN32 -MD -Ox -D_FILE_OFFSET_BITS=64 -nologo
cannam@89 8
cannam@89 9 OBJS= blocksort.obj \
cannam@89 10 huffman.obj \
cannam@89 11 crctable.obj \
cannam@89 12 randtable.obj \
cannam@89 13 compress.obj \
cannam@89 14 decompress.obj \
cannam@89 15 bzlib.obj
cannam@89 16
cannam@89 17 all: lib bzip2 test
cannam@89 18
cannam@89 19 bzip2: lib
cannam@89 20 $(CC) $(CFLAGS) -o bzip2 bzip2.c libbz2.lib setargv.obj
cannam@89 21 $(CC) $(CFLAGS) -o bzip2recover bzip2recover.c
cannam@89 22
cannam@89 23 lib: $(OBJS)
cannam@89 24 lib /out:libbz2.lib $(OBJS)
cannam@89 25
cannam@89 26 test: bzip2
cannam@89 27 type words1
cannam@89 28 .\\bzip2 -1 < sample1.ref > sample1.rb2
cannam@89 29 .\\bzip2 -2 < sample2.ref > sample2.rb2
cannam@89 30 .\\bzip2 -3 < sample3.ref > sample3.rb2
cannam@89 31 .\\bzip2 -d < sample1.bz2 > sample1.tst
cannam@89 32 .\\bzip2 -d < sample2.bz2 > sample2.tst
cannam@89 33 .\\bzip2 -ds < sample3.bz2 > sample3.tst
cannam@89 34 @echo All six of the fc's should find no differences.
cannam@89 35 @echo If fc finds an error on sample3.bz2, this could be
cannam@89 36 @echo because WinZip's 'TAR file smart CR/LF conversion'
cannam@89 37 @echo is too clever for its own good. Disable this option.
cannam@89 38 @echo The correct size for sample3.ref is 120,244. If it
cannam@89 39 @echo is 150,251, WinZip has messed it up.
cannam@89 40 fc sample1.bz2 sample1.rb2
cannam@89 41 fc sample2.bz2 sample2.rb2
cannam@89 42 fc sample3.bz2 sample3.rb2
cannam@89 43 fc sample1.tst sample1.ref
cannam@89 44 fc sample2.tst sample2.ref
cannam@89 45 fc sample3.tst sample3.ref
cannam@89 46
cannam@89 47
cannam@89 48
cannam@89 49 clean:
cannam@89 50 del *.obj
cannam@89 51 del libbz2.lib
cannam@89 52 del bzip2.exe
cannam@89 53 del bzip2recover.exe
cannam@89 54 del sample1.rb2
cannam@89 55 del sample2.rb2
cannam@89 56 del sample3.rb2
cannam@89 57 del sample1.tst
cannam@89 58 del sample2.tst
cannam@89 59 del sample3.tst
cannam@89 60
cannam@89 61 .c.obj:
cannam@89 62 $(CC) $(CFLAGS) -c $*.c -o $*.obj
cannam@89 63