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