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