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