1#  Copyright (C) 2001-2008 Artifex Software, Inc.
2#  All Rights Reserved.
3#
4#  This software is provided AS-IS with no warranty, either express or
5#  implied.
6#
7#  This software is distributed under license and may not be copied, modified
8#  or distributed except as expressly authorized under the terms of that
9#  license.  Refer to licensing information at http://www.artifex.com/
10#  or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11#  San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12#
13# $Id: pcwin.mak 9052 2008-08-30 13:31:29Z ghostgum $
14# makefile for PC window system (MS Windows and OS/2) -specific device
15# drivers.
16
17# Define the name of this makefile.
18PCWIN_MAK=$(GLSRC)pcwin.mak
19
20# We have to isolate these in their own file because the MS Windows code
21# requires special compilation switches, different from all other files
22# and platforms.
23
24### -------------------- The MS-Windows 3.n DLL ------------------------- ###
25
26gp_mswin_h=$(GLSRC)gp_mswin.h
27gsdll_h=$(GLSRC)gsdll.h
28gsdllwin_h=$(GLSRC)gsdllwin.h
29
30gdevmswn_h=$(GLSRC)gdevmswn.h $(GDEVH)\
31 $(dos__h) $(memory__h) $(string__h) $(windows__h)\
32 $(gp_mswin_h)
33
34# This is deprecated and requires the interpreter / PSSRCDIR.
35$(GLOBJ)gdevmswn.$(OBJ): $(GLSRC)gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h)\
36 $(gsdll_h) $(gsdllwin_h) $(gsparam_h) $(gdevpccm_h)
37	$(GLCCWIN) -I$(PSSRCDIR) $(GLO_)gdevmswn.$(OBJ) $(C_) $(GLSRC)gdevmswn.c
38
39$(GLOBJ)gdevmsxf.$(OBJ): $(GLSRC)gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) $(string__h)\
40 $(gdevmswn_h) $(gsstruct_h) $(gsutil_h) $(gxxfont_h)
41	$(GLCCWIN) $(GLO_)gdevmsxf.$(OBJ) $(C_) $(GLSRC)gdevmsxf.c
42
43# An implementation using a DIB filled by an image device.
44# This is deprecated and requires the interpreter / PSSRCDIR.
45$(GLOBJ)gdevwdib.$(OBJ): $(GLSRC)gdevwdib.c\
46 $(gdevmswn_h) $(gsdll_h) $(gsdllwin_h) $(gxdevmem_h)
47	$(GLCCWIN) -I$(PSSRCDIR) $(GLO_)gdevwdib.$(OBJ) $(C_) $(GLSRC)gdevwdib.c
48
49mswindll1_=$(GLOBJ)gdevmswn.$(OBJ) $(GLOBJ)gdevmsxf.$(OBJ) $(GLOBJ)gdevwdib.$(OBJ)
50mswindll2_=$(GLOBJ)gdevemap.$(OBJ) $(GLOBJ)gdevpccm.$(OBJ)
51mswindll_=$(mswindll1_) $(mswindll2_)
52$(GLGEN)mswindll.dev: $(mswindll_)
53	$(SETDEV) $(GLGEN)mswindll $(mswindll1_)
54	$(ADDMOD) $(GLGEN)mswindll $(mswindll2_)
55
56### -------------------- The MS-Windows DDB 3.n printer ----------------- ###
57
58mswinprn_=$(GLOBJ)gdevwprn.$(OBJ) $(GLOBJ)gdevmsxf.$(OBJ)
59$(DD)mswinprn.dev: $(mswinprn_)
60	$(SETDEV) $(DD)mswinprn $(mswinprn_)
61
62$(GLOBJ)gdevwprn.$(OBJ): $(GLSRC)gdevwprn.c $(gdevmswn_h) $(gp_h)
63	$(GLCCWIN) $(GLO_)gdevwprn.$(OBJ) $(C_) $(GLSRC)gdevwprn.c
64
65### -------------------- The MS-Windows DIB 3.n printer ----------------- ###
66
67mswinpr2_=$(GLOBJ)gdevwpr2.$(OBJ)
68$(DD)mswinpr2.dev: $(mswinpr2_) $(GLD)page.dev
69	$(SETPDEV) $(DD)mswinpr2 $(mswinpr2_)
70
71$(GLOBJ)gdevwpr2.$(OBJ): $(GLSRC)gdevwpr2.c $(PDEVH) $(windows__h)\
72 $(gdevpccm_h) $(gp_h) $(gp_mswin_h)
73	$(GLCCWIN) $(GLO_)gdevwpr2.$(OBJ) $(C_) $(GLSRC)gdevwpr2.c
74
75### --------------------------- The OS/2 printer ------------------------ ###
76
77os2prn_=$(GLOBJ)gdevos2p.$(OBJ)
78$(DD)os2prn.dev: $(os2prn_) $(GLD)page.dev
79	$(SETPDEV) $(DD)os2prn $(os2prn_)
80
81$(GLOBJ)gdevos2p.$(OBJ): $(GLSRC)gdevos2p.c $(gp_h) $(gdevpccm_h) $(gdevprn_h) $(gscdefs_h)
82	$(GLCC) $(GLO_)gdevos2p.$(OBJ) $(C_) $(GLSRC)gdevos2p.c
83