1# Copyright (C) 1997, 2000 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: msvctail.mak,v 1.11 2005/03/04 21:58:55 ghostgum Exp $ 17# Common tail section for Microsoft Visual C++ 4.x/5.x, 18# Windows NT or Windows 95 platform. 19# Created 1997-05-22 by L. Peter Deutsch from msvc4/5 makefiles. 20# edited 1997-06-xx by JD to factor out interpreter-specific sections 21# edited 2000-06-05 by lpd to handle empty MSINCDIR specially. 22 23 24# -------------------------- Auxiliary programs --------------------------- # 25 26# This also creates the subdirectories since this (hopefully) will be the 27# first need. Too bad nmake doesn't have .BEFORE symbolic target. 28$(GLGENDIR)\ccf32.tr: $(TOP_MAKEFILES) 29 -mkdir $(PSOBJDIR) 30 -mkdir $(PSGENDIR) 31 -mkdir $(GLOBJDIR) 32 -mkdir $(GLGENDIR) 33 -mkdir $(BINDIR) 34 echo $(GENOPT) -DCHECK_INTERRUPTS -D_Windows -D__WIN32__ > $(GLGENDIR)\ccf32.tr 35 36$(ECHOGS_XE): $(GLSRC)echogs.c 37 $(CCAUX) $(GLSRC)echogs.c /Fo$(GLOBJ)echogs.obj /Fe$(ECHOGS_XE) $(CCAUX_TAIL) 38 39# Don't create genarch if it's not needed 40!ifdef GENARCH_XE 41!ifdef WIN64 42$(GENARCH_XE): $(GLSRC)genarch.c $(GENARCH_DEPS) $(GLGENDIR)\ccf32.tr 43 $(CC) @$(GLGENDIR)\ccf32.tr /Fo$(GLOBJ)genarch.obj $(GLSRC)genarch.c 44 $(LINK) $(LCT) $(LINKLIBPATH) $(GLOBJ)genarch.obj /OUT:$(GENARCH_XE) 45!else 46$(GENARCH_XE): $(GLSRC)genarch.c $(GENARCH_DEPS) $(GLGENDIR)\ccf32.tr 47 $(CCAUX) @$(GLGENDIR)\ccf32.tr /Fo$(GLOBJ)genarch.obj /Fe$(GENARCH_XE) $(GLSRC)genarch.c $(CCAUX_TAIL) 48!endif 49!endif 50 51$(GENCONF_XE): $(GLSRC)genconf.c $(GENCONF_DEPS) 52 $(CCAUX) $(GLSRC)genconf.c /Fo$(GLOBJ)genconf.obj /Fe$(GENCONF_XE) $(CCAUX_TAIL) 53 54$(GENDEV_XE): $(GLSRC)gendev.c $(GENDEV_DEPS) 55 $(CCAUX) $(GLSRC)gendev.c /Fo$(GLOBJ)gendev.obj /Fe$(GENDEV_XE) $(CCAUX_TAIL) 56 57$(GENHT_XE): $(GLSRC)genht.c $(GENHT_DEPS) 58 $(CCAUX) $(GENHT_CFLAGS) $(GLSRC)genht.c /Fo$(GLOBJ)genht.obj /Fe$(GENHT_XE) $(CCAUX_TAIL) 59 60# PSSRC and PSOBJ aren't defined yet, so we spell out the definitions. 61$(GENINIT_XE): $(PSSRCDIR)$(D)geninit.c $(GENINIT_DEPS) 62 $(CCAUX) $(PSSRCDIR)$(D)geninit.c /Fo$(PSOBJDIR)$(D)geninit.obj /Fe$(GENINIT_XE) $(CCAUX_TAIL) 63 64# -------------------------------- Library -------------------------------- # 65 66# See winlib.mak 67 68# ----------------------------- Main program ------------------------------ # 69 70LIBCTR=$(GLGEN)libc32.tr 71 72$(LIBCTR): $(TOP_MAKEFILES) 73 echo shell32.lib >$(LIBCTR) 74 echo comdlg32.lib >>$(LIBCTR) 75 echo gdi32.lib >>$(LIBCTR) 76 echo user32.lib >>$(LIBCTR) 77 echo winspool.lib >>$(LIBCTR) 78 echo advapi32.lib >>$(LIBCTR) 79 80# end of msvctail.mak 81