summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipos/miktex.mak
blob: 67a0a9c8335edfcfa7064e77bfa289e202f8fb54 (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
## miktex.mak: dvipos
## Copyright (C) 2003 Jin-Hwan Cho <chofchof@ktug.or.kr>
## 
## This file is part of dvipos.
## 
## dvipos is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
## 
## dvipos is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
## 
## You should have received a copy of the GNU General Public License
## along with dvipdfmx; if not, write to the Free Software Foundation,
## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

miktex_cc_no_runtime_checks = 1
miktex_cc_no_warnings = 1

!include ..\miktex.inc

objects =	\
		$(outdir)\dvicore.obj \
		$(outdir)\dvipos.obj \
		$(outdir)\tfm.obj \
		$(outdir)\utils.obj \

sources =	\
		dvicore.c \
		dvipos.c \
		tfm.c \
		utils.c \

cc_options = $(cflags) $(cdebug) $(cvarsdll) $(cflagspackfunc) \
		 -I. -I$(libdir) -I$(gnulibdir) -I$(kpslibdir) \
		$(miktexvars)

.c{$(outdir)\}.obj:
!ifdef xxx
	$(sed) -e "s/^static \(.*\)(/\1(/" $< > _xyz.c
	$(cc) $(cc_options) -Fo$@ _xyz.c
	del _xyz.c
!else
	$(cc) $(cc_options) -Fo$(outdir)\ $<
!endif

.cpp{$(outdir)\}.obj:
	$(cc) $(cc_options) $(cflagseh) -Fo$(outdir)\ $<

binaries = $(outdir)\dvipos.exe

all: common-all $(binaries)

install: common-install install-binaries

qrt: common-qrt

# -----------------------------------------------------------------------------
# dvipos
# -----------------------------------------------------------------------------

$(outdir)\dvipos.exe: $(outdir) $(objects) \
		$(miktex_lib) $(kps_lib) $(gnu_lib)
	$(link) $(conlflags) $(ldebug) \
		-out:$@ \
		$(objects) \
		$(miktex_lib) $(kps_lib) $(gnu_lib) $(conlibsdll)

#$(outdir)\dvipos.res: $(outdir) dvipos.rc
#	$(rc) $(rcflags) $(rcvars) -I$(libdir) -Fo$@ dvipos.rc

# -----------------------------------------------------------------------------
# clean-up
# -----------------------------------------------------------------------------

mostlyclean: common-mostlyclean

clean: common-clean mostlyclean

distclean: common-distclean clean

realclean: common-realclean distclean

# -----------------------------------------------------------------------------
# dependencies
# -----------------------------------------------------------------------------

!include ..\common-dependencies.inc

depend: $(sources)
	$(MAKEDEPEND1) -I..\libkps $**