aboutsummaryrefslogtreecommitdiff
path: root/makefile.msc
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.msc')
-rw-r--r--makefile.msc65
1 files changed, 65 insertions, 0 deletions
diff --git a/makefile.msc b/makefile.msc
new file mode 100644
index 0000000..4b49f78
--- /dev/null
+++ b/makefile.msc
@@ -0,0 +1,65 @@
1# Makefile for Microsoft Visual C++ 6.0
2# usage: nmake -f makefile.msc
3# K.M. Syring (syring@gsf.de)
4# Fixed up by JRS for bzip2-0.9.5d release.
5
6CC=cl
7CFLAGS= -DWIN32 -MD -Ox
8
9OBJS= blocksort.obj \
10 huffman.obj \
11 crctable.obj \
12 randtable.obj \
13 compress.obj \
14 decompress.obj \
15 bzlib.obj
16
17all: lib bzip2 test
18
19bzip2: lib
20 $(CC) $(CFLAGS) -o bzip2 bzip2.c libbz2.lib setargv.obj
21 $(CC) $(CFLAGS) -o bzip2recover bzip2recover.c
22
23lib: $(OBJS)
24 del libbz2.lib
25 lib /out:libbz2.lib $(OBJS)
26
27test: bzip2
28 type words1
29 .\\bzip2 -1 < sample1.ref > sample1.rb2
30 .\\bzip2 -2 < sample2.ref > sample2.rb2
31 .\\bzip2 -3 < sample3.ref > sample3.rb2
32 .\\bzip2 -d < sample1.bz2 > sample1.tst
33 .\\bzip2 -d < sample2.bz2 > sample2.tst
34 .\\bzip2 -ds < sample3.bz2 > sample3.tst
35 fc sample1.bz2 sample1.rb2
36 fc sample2.bz2 sample2.rb2
37 fc sample3.bz2 sample3.rb2
38 fc sample1.tst sample1.ref
39 fc sample2.tst sample2.ref
40 fc sample3.tst sample3.ref
41 @echo All six of the fc's should find no differences.
42 @echo If fc finds an error on sample3.tst, this could be
43 @echo because WinZips 'TAR file smart CR/LF conversion'
44 @echo is too clever for its own good. Disable this option.
45 @echo The correct size for sample3.ref is 120,244. If it
46 @echo is around 150k, WinZip has stuffed it up.
47 @echo Also remember to set BZ_UNIX to 0 and BZ_LCCWIN32
48 @echo to 1 in bzip2.c.
49
50
51clean:
52 del *.obj
53 del libbz2.lib
54 del bzip2.exe
55 del bzip2recover.exe
56 del sample1.rb2
57 del sample2.rb2
58 del sample3.rb2
59 del sample1.tst
60 del sample2.tst
61 del sample3.tst
62
63.c.obj:
64 $(CC) $(CFLAGS) -c $*.c -o $*.obj
65