blob: dc0c2089306b3dee73f001737ee2f9b312ca369c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
################################################################################
#
# Makefile : Bzip2
# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <04/03/14 19:28:04 popineau>
#
################################################################################
root_srcdir = ..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif
USE_GNUW32 = 1
USE_BZIP2 = 1
MAKE_BZIP2 = 1
!include <msvc/common.mak>
programs = $(bzip2dll) $(objdir)\bzip2.exe $(objdir)\bzip2recover.exe
libfiles = $(bzip2lib)
includefiles = bzlib.h
manfiles = bzip2.1
infofiles = manual.info
pdfdocfiles = manual.pdf
docsubdir = bzip2
installinfoflags = --entry="* Bzip2 (bzip2): An enhance compressor"\
--section="Miscellaneous"
objects= $(objdir)\blocksort.obj \
$(objdir)\huffman.obj \
$(objdir)\crctable.obj \
$(objdir)\randtable.obj \
$(objdir)\compress.obj \
$(objdir)\decompress.obj \
$(objdir)\bzlib.obj
default: all
all: $(objdir) $(libfiles) $(programs)
lib: $(objdir) $(libfiles)
!ifdef BZIP2_DLL
$(bzip2lib): $(objdir) $(objects)
$(archive) /DEF $(objects)
$(bzip2dll): $(bzip2lib) $(objects) $(objdir)\bz2lib.res $(gnuw32lib)
$(link_dll) $(**) $(bzip2lib:.lib=.exp) $(conlibs)
!else
$(bzip2lib): $(objdir) $(objects)
$(archive) $(objects)
!endif
$(objdir)\bzip2.exe: $(objdir)\bzip2.obj $(bzip2lib)
$(link) $(**) $(setargvobj) $(conlibs)
$(objdir)\bzip2recover.exe: $(objdir)\bzip2recover.obj $(bzip2lib)
$(link) $(**) $(setargvobj) $(conlibs)
!include <msvc/config.mak>
!include <msvc/install.mak>
makeinfo_flags = $(makeinfo_flags) --force
install:: install-exec install-lib install-include
test: $(objdir)\bzip2.exe
@type words1
.\$(objdir)\bzip2 -1 < sample1.ref > sample1.rb2
.\$(objdir)\bzip2 -2 < sample2.ref > sample2.rb2
.\$(objdir)\bzip2 -d < sample1.bz2 > sample1.tst
.\$(objdir)\bzip2 -d < sample2.bz2 > sample2.tst
@type words2
fc sample1.bz2 sample1.rb2
fc sample2.bz2 sample2.rb2
fc sample1.tst sample1.ref
fc sample2.tst sample2.ref
@type words3
!include <msvc/clean.mak>
clean::
-@$(del) sample1.rb2 sample2.rb2 sample1.tst sample2.tst
!include <msvc/rdepend.mak>
!include "./depend.mak"
#
# Local Variables:
# mode: makefile
# End:
|