blob: 65f9f633e8b5d7a4bb187f8049dda9f6b0f3c7e8 (
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
################################################################################
#
# Makefile : TeXk / contrib
# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <03/09/18 11:26:01 popineau>
#
################################################################################
root_srcdir=..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif
USE_KPATHSEA=1
USE_MKTEX=1
MAKE_MKTEX = 1
USE_REGEX=1
USE_GNUW32=1
# FIXME: delay load kpathsea for irun !!!
!include <msvc/common.mak>
DEFS = $(DEFS) -DHAVE_CONFIG_H -DKPATHSEA_DLL=\"$(kpathseaname).dll\"
mktex_objs = $(objdir)\fileutils.obj \
$(objdir)\mktex.obj \
$(objdir)\variables.obj \
$(objdir)\stackenv.obj
mktex_progs = $(objdir)\mktexlsr.exe \
$(objdir)\mktexnam.exe \
$(objdir)\mktexupd.exe \
$(objdir)\mktexpk.exe \
$(objdir)\mktexdir.exe \
$(objdir)\mktexmf.exe \
$(objdir)\mktextfm.exe \
# $(objdir)\mkofm.exe \
# $(objdir)\mktextex.exe
programs = \
$(mktexdll) \
$(objdir)\dvihp.exe \
$(objdir)\makempx.exe \
$(objdir)\mktex.exe \
$(objdir)\fmtutil.exe \
$(objdir)\mkocp.exe \
$(objdir)\mkofm.exe \
$(objdir)\irun.exe \
$(objdir)\pdfdde.exe
pdfddechilds = $(objdir)\pdfopen.exe $(objdir)\pdfclose.exe
libfiles = $(mktexlib)
default: all
all: $(objdir) $(mktex) $(programs)
lib: $(objdir) $(mktexlib)
!ifdef MKTEX_DLL
DEFS = -DMAKE_MKTEX_DLL $(DEFS)
$(mktexlib): $(mktex_objs)
$(archive) /DEF $(mktex_objs)
$(mktexdll): $(mktex_objs) $(objdir)\libmktex.res $(regexlib) $(kpathsealib)
$(link_dll) $(**) $(mktexlib:.lib=.exp) $(conlibs)
!else
$(mktexlib): $(mktex_objs) $(regexlib)
$(archive) $(**)
!endif
mktex_progs: $(objdir)\mktex.exe
for %%i in ($(mktex_progs)) \
do $(copy) $(objdir)\mktex.exe $(objdir)\%%~nxi
$(objdir)\makempx.exe: $(objdir)\makempx.obj $(mktexlib) $(objdir)\makempx.res $(kpathsealib)
$(link) $(**) $(conlibs)
$(objdir)\fmtutil.exe: $(objdir)\fmtutil.obj $(mktexlib) $(kpathsealib)
$(link) $(**) $(conlibs)
$(objdir)\dvihp.exe: $(objdir)\dvihp.obj $(mktexlib) $(objdir)\dvihp.res $(kpathsealib)
$(link) $(**) $(conlibs)
$(objdir)\mktex.exe: $(objdir)\main.obj $(mktexlib) $(kpathsealib)
$(link) $(**) $(conlibs)
$(objdir)\mkocp.exe: $(objdir)\mkocp.obj $(mktexlib) $(kpathsealib)
$(link) $(**) $(conlibs)
$(objdir)\mkofm.exe: $(objdir)\mkofm.obj $(gnuw32lib)
$(link) $(**) $(conlibs)
$(objdir)\makempx.obj: makempx.c
$(compile) -UMAKE_MKTEX_DLL makempx.c
$(objdir)\fmtutil.obj: fmtutil.c
$(compile) -UMAKE_MKTEX_DLL fmtutil.c
$(objdir)\main.obj: main.c
$(compile) -UMAKE_MKTEX_DLL main.c
$(objdir)\dvihp.obj: dvihp.c
$(compile) -UMAKE_MKTEX_DLL dvihp.c
$(objdir)\mkocp.obj: mkocp.c
$(compile) -UMAKE_MKTEX_DLL mkocp.c
$(objdir)\mkofm.obj: mkofm.c
$(compile) -UKPSE_DLL -UMAKE_MKTEX_DLL mkofm.c
$(objdir)\irun-tmp.obj: $(srcdir)\irun.c
echo define RDATA 0x3D000 | sed "s/define/#define/" > $(srcdir)\irun.h
$(compile) $(srcdir)\irun.c
$(objdir)\irun-tmp.exe: $(objdir)\irun-tmp.obj $(kpathsealib)
$(link) $(**) $(conlibs)
$(objdir)\irun.obj: $(srcdir)\irun.c $(objdir)\irun-tmp.exe
dumpbin /headers $(objdir)\irun-tmp.exe \
| sed -n -e "/^[ \t]*FOOBAR/,/^[ \t]*FOOBAR/p" \
| sed -n -e "/file pointer/p" \
| sed -e "/raw data/s/^[ \t]*\([0-9A-Z]*\).*$$/#define RDATA 0x\1/" \
| sed -e "/file pointer/d" \
> $(srcdir)\irun.h
$(compile) $(srcdir)\irun.c
# -$(RM) $(objdir)\irun-tmp.*
$(objdir)\irun.exe: $(objdir)\irun.obj $(objdir)\irun.res $(kpathsealib)
$(link) $(**) $(conlibs) $(kpathsealib)
$(objdir)\pdfdde.exe: $(objdir)\pdfdde.obj $(gnuw32lib)
$(link) $(**) $(conlibs) shell32.lib
$(objdir)\pdfdde.obj: pdfdde.c
$(compile) -UKPSE_DLL pdfdde.c
!include <msvc/config.mak>
!include <msvc/install.mak>
install:: install-exec
install-exec::
-@echo $(verbose) & ( \
echo "Installing mktex program files in $(MAKEDIR)" & \
( for %%i in ($(mktex_progs)) do \
$(copy) $(objdir)\mktex.exe $(bindir)\%%~nxi $(redir_stdout) ) & \
$(copy) $(objdir)\fmtutil.exe $(bindir)\mktexfmt.exe $(redir_stdout) \
)
-@echo $(verbose) & ( \
for %%i in ($(pdfddechilds)) \
do $(copy) $(objdir)\pdfdde.exe $(bindir)\%%~nxi $(redir_stdout) )
!include <msvc/clean.mak>
!include <msvc/rdepend.mak>
!include "./depend.mak"
#Local Variables:
#mode: Makefile
#End:
|