summaryrefslogtreecommitdiff
path: root/Build/source/texk/windvi/win32.mak
blob: 0a42074500c35cacdb51ea9437f00f2661bce40d (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
################################################################################
#
# Makefile  : Windvi
# Author    : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform  : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <04/03/07 16:04:45 popineau>
#
################################################################################
root_srcdir = ..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif

USE_GNUW32 = 1
USE_GSW32 = 1
USE_KPATHSEA = 1
USE_ZLIB = 1
USE_BZIP2 = 1
USE_T1 = 1
USE_NETWORK2=1

# This is a gui application
GUI = 1
# MEMDBG=1
XDVIK_MAKE = 1

windvimajver = 0
windviminver = 66
xrcvars = -DWINDVI_MAJVER=\""$(windvimajver)"\" -DWINDVI_MINVER=\""$(windviminver)"\"

subdirs = doc

!include <msvc/common.mak>

# Compilation options.
DEFS = $(DEFS) -DKPATHSEA -DUSE_POPEN					\
	-DPS_GS                                                         \
	-DA4                                                            \
	-DHTEX                                                          \
	-DBOOK_MODE                                                     \
	-DTRANSFORM=1                                                   \
	-DGREY                                                          \
	-DBUTTONS				                        \
	-DDO_BANDING=1                                                  \
	-DSRC_SPECIALS							\
	-DNeedFunctionPrototypes                                        \
#	-I$(WWWLIBDIR)                                                  \
	-I$(ZLIBDIR) 							\
	-I$(REGEXLIBDIR)                                     		\
	-I$(T1LIBDIR)                                                   \
	-I$(BZ2LIBDIR)                                                  \
	-I$(root_srcdir)                         			\
	$(ZLIB_FLAGS) $(WWWLIB_FLAGS)

!ifdef WIN32
XDVI_H = winutil.h
!else
XDVI_H = xdvi.h
!endif

# Define these appropriately if configure guesses incorrectly.
x_link =

# Extra xdvi-specific compiler options.
ps_def = 
prog_cflags = $(ps_def) $(x_cppflags)

# We don't use alloca ourselves, but the X library might, and this way
# we avoid buggy versions in -lPW or -lucb.
ALLOCA = # $(objdir)\alloca.obj

objects = $(objdir)\windvi.obj $(objdir)\windraw.obj                      \
	$(objdir)\winabout.obj $(objdir)\wingoto.obj                      \
	$(objdir)\wincolor.obj                                            \
	$(objdir)\wintransf.obj                                           \
	$(objdir)\winhtex.obj                                             \
	$(objdir)\winimg.obj                                              \
	$(objdir)\winprint.obj $(objdir)\winver.obj $(objdir)\wincfg.obj  \
	$(objdir)\winlog.obj $(objdir)\winopt.obj $(objdir)\winxutl.obj   \
	$(objdir)\winevt.obj $(objdir)\dvi-draw.obj                       \
	$(objdir)\dvi-init.obj $(objdir)\font-open.obj $(objdir)\gf.obj   \
	$(objdir)\pk.obj $(objdir)\psgsw32.obj                            \
#	$(objdir)\psheader.obj                                            \
	$(objdir)\special.obj $(objdir)\util.obj $(objdir)\vf.obj         \
	$(objdir)\hypertex.obj                                            \
#	$(objdir)\mime.obj                                                \
	$(objdir)\wwwfetch.obj                                            \
	$(objdir)\src-spec.obj                                            \
	$(ALLOCA)                                                         \
	$(objdir)\t1.obj $(objdir)\dvips.obj $(objdir)\tfmload.obj

program = $(objdir)\windvi.exe
programs = $(program)

manfiles = xdvi.1

default all:: $(objdir) $(programs)

$(program): $(objects) $(objdir)\windvi.res $(kpathsealib) $(zliblib) $(bzip2lib) $(gsw32lib)
	$(link_gui) $(**) $(guilibs) shell32.lib

$(objdir)\windvi.res: ..\windvi\windvi.rc
	$(RC) $(rcvars) $(rcflags) /fo$@ windvi.rc

xdvi.1: xdvi.man sedscript
	sed -f sedscript <$(srcdir)/xdvi.man >$@

sedscript: mksedscript.perl
	$(perl) $(srcdir)/mksedscript.perl kpathsea ps grid ghost pkpath sizes vfpath figpath \
	headerpath selfile $(DEFS) >$@

!include <msvc/subdirs.mak>

!include <msvc/config.mak>

installdirs = $(docdir)\windvi\examples

!include <msvc/install.mak>

# install: install-exec install-data
install:: install-exec install-data install-man

install-data::
	@echo $(verbose) & ( \
		for /f %i in (samples.lst) do \
		$(copy) .\Examples\%i $(docdir)\windvi\examples $(redir_stdout) \
	)
!include <msvc/clean.mak>

distclean::
	-@$(del) psheader.c sedscript xdvi.1 # gsftopk.1

mfmodes.h: $(win32perldir)/modes-to-cfg.pl
	$(perl) $(win32perldir)/modes-to-cfg.pl

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

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