xref: /plan9/sys/src/cmd/gs/src/winplat.mak (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1#    Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
2#
3# This software is provided AS-IS with no warranty, either express or
4# implied.
5#
6# This software is distributed under license and may not be copied,
7# modified or distributed except as expressly authorized under the terms
8# of the license contained in the file LICENSE in this distribution.
9#
10# For more information about licensing, please refer to
11# http://www.ghostscript.com/licensing/. For information on
12# commercial licensing, go to http://www.artifex.com/licensing/ or
13# contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14# San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
16# $Id: winplat.mak,v 1.5 2003/10/21 11:54:04 alexcher Exp $
17# Common makefile section for builds on 32-bit MS Windows, including the
18# Watcom MS-DOS build.
19
20# Define the name of this makefile.
21WINPLAT_MAK=$(GLSRC)winplat.mak
22
23# Define generic Windows-specific modules.
24
25winplat_=$(GLOBJ)gp_ntfs.$(OBJ) $(GLOBJ)gp_win32.$(OBJ)
26$(GLD)winplat.dev : $(WINPLAT_MAK) $(ECHOGS_XE) $(winplat_)
27	$(SETMOD) $(GLD)winplat $(winplat_)
28
29$(GLOBJ)gp_ntfs.$(OBJ): $(GLSRC)gp_ntfs.c $(AK)\
30 $(dos__h) $(memory__h) $(stdio__h) $(string__h) $(windows__h)\
31 $(gp_h) $(gpmisc_h) $(gsmemory_h) $(gsstruct_h) $(gstypes_h) $(gsutil_h)
32	$(GLCCWIN) $(GLO_)gp_ntfs.$(OBJ) $(C_) $(GLSRC)gp_ntfs.c
33
34$(GLOBJ)gp_win32.$(OBJ): $(GLSRC)gp_win32.c $(AK)\
35 $(dos__h) $(malloc__h) $(stdio__h) $(string__h) $(windows__h)\
36 $(gp_h) $(gsmemory_h) $(gstypes_h)
37	$(GLCCWIN) $(GLO_)gp_win32.$(OBJ) $(C_) $(GLSRC)gp_win32.c
38
39# Define the Windows thread / synchronization module.
40
41winsync_=$(GLOBJ)gp_wsync.$(OBJ)
42$(GLD)winsync.dev : $(WINPLAT_MAK) $(ECHOGS_XE) $(winsync_)
43	$(SETMOD) $(GLD)winsync $(winsync_)
44	$(ADDMOD) $(GLD)winsync -replace $(GLD)nosync
45
46$(GLOBJ)gp_wsync.$(OBJ): $(GLSRC)gp_wsync.c $(AK)\
47 $(dos__h) $(malloc__h) $(stdio__h) $(string__h) $(windows__h)\
48 $(gp_h) $(gsmemory_h) $(gstypes_h)
49	$(GLCCWIN) $(GLO_)gp_wsync.$(OBJ) $(C_) $(GLSRC)gp_wsync.c
50