summaryrefslogtreecommitdiff
path: root/Build/source/utils/gzip/win32.mak
blob: 3821d0493f1843aaa5474c57e9c0661cf0195615 (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
################################################################################
#
# Makefile  : Gzip
# Author    : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform  : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <04/03/10 23:41:05 popineau>
#
################################################################################
root_srcdir = ..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif

# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, see the file COPYING.

# This makefile is suitable for NTFS only. To build a gzip executable suitable
# for a FAT file system, add -DNTFAT to DEFS.

# To build debug version, define environment variable DEBUG, or include a
# -DDEBUG on the commandline (i.e.: nmake -DDEBUG)

USE_GNUW32 = 1

!include <msvc/common.mak>

DEFS = $(DEFS) -DKPATHSEA=1

programs = $(objdir)\gzip.exe $(objdir)\gunzip.exe
manfiles = gzip.1
infofiles = gzip.info
pdfdocfiles = gzip.pdf
docsubdir = gzip
installinfoflags = --entry="* Gzip (gzip):					The GNU compressor"\
	  --section="Miscellaneous"
#
# Object files
#
objects = $(objdir)\gzip.obj $(objdir)\zip.obj $(objdir)\deflate.obj     \
	$(objdir)\trees.obj $(objdir)\bits.obj $(objdir)\unzip.obj    \
	$(objdir)\inflate.obj $(objdir)\util.obj $(objdir)\crypt.obj  \
	$(objdir)\lzw.obj $(objdir)\unlzw.obj $(objdir)\unpack.obj    \
	$(objdir)\unlzh.obj

#
# Main target
#
default: all

all: $(objdir) $(programs)

#
# Link target. setargv.obj is provided in the compiler library directory.
#
$(objdir)\gzip.exe: $(objects) $(gnuw32lib)
	$(link) $(**) $(conlibs)

$(objdir)\gunzip.exe: $(objdir)\gzip.exe
	$(copy) $(**) $@

!include <msvc/config.mak>
!include <msvc/install.mak>

install:: install-exec

test: check

check:	$(programs)
	.\$(objdir)\gzip -6 < $(srcdir)/texinfo.tex > _gztest.gz
	@echo The next number should be 30890
	wc -c < _gztest.gz
	-@$(del) _gztest
	.\$(objdir)\gzip -d _gztest.gz
	-@fc _gztest $(srcdir)\texinfo.tex
	-@if ERRORLEVEL 1 \
	   echo FAILED gzip test: incorrect size; \
	-@$(del) _gztest

!include <msvc/clean.mak>
!include <msvc/rdepend.mak>
!include "./depend.mak"

#
# Local Variables:
# mode: makefile
# End: