1# Copyright (C) 1994, 1995, 1997, 1998, 1999, 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: dvx-tail.mak,v 1.8 2002/10/09 23:43:58 giles Exp $ 17# Partial makefile, common to all Desqview/X configurations. 18# This is the last part of the makefile for Desqview/X configurations. 19 20# The following prevents GNU make from constructing argument lists that 21# include all environment variables, which can easily be longer than 22# brain-damaged system V allows. 23 24.NOEXPORT: 25 26# -------------------------------- Library -------------------------------- # 27 28## The Desqview/X platform 29 30dvx__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_dvx.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_dosfs.$(OBJ) gp_stdin.$(OBJ) 31$(GLGEN)dvx_.dev: $(dvx__) nosync.dev 32 $(SETMOD) $(GLGEN)dvx_ $(dvx__) -include nosync 33 34$(GLOBJ)gp_dvx.$(OBJ): $(GLSRC)gp_dvx.c $(AK) $(string__h) $(gx_h) $(gsexit_h) $(gp_h) \ 35 $(time__h) $(dos__h) 36 $(CC_) -D__DVX__ -c $(GLSRC)gp_dvx.c -o $(GLOBJ)gp_dvx.$(OBJ) 37 38$(GLOBJ)gp_stdin.$(OBJ): $(GLSRC)gp_stdin.c $(AK) $(stdio__h) $(gx_h) $(gp_h) 39 $(GLCC) $(GLO_)gp_stdin.$(OBJ) $(C_) $(GLSRC)gp_stdin.c 40 41# -------------------------- Auxiliary programs --------------------------- # 42 43$(ECHOGS_XE): echogs.c 44 $(CC) -o echogs $(CFLAGS) echogs.c 45 strip echogs 46 coff2exe echogs 47 del echogs 48 49$(GENARCH_XE): genarch.c $(GENARCH_DEPS) 50 $(CC) -o genarch genarch.c 51 strip genarch 52 coff2exe genarch 53 del genarch 54 55$(GENCONF_XE): genconf.c $(GENCONF_DEPS) 56 $(CC) -o genconf genconf.c 57 strip genconf 58 coff2exe genconf 59 del genconf 60 61$(GENDEV_XE): gendev.c $(GENDEV_DEPS) 62 $(CC) -o gendev gendev.c 63 strip gendev 64 coff2exe gendev 65 del gendev 66 67$(GENHT_XE): genht.c $(GENHT_DEPS) 68 $(CC) -o genht $(GENHT_CFLAGS) genht.c 69 strip genht 70 coff2exe genht 71 del genht 72 73$(GENINIT_XE): geninit.c $(GENINIT_DEPS) 74 $(CC) -o geninit geninit.c 75 strip geninit 76 coff2exe geninit 77 del geninit 78 79# Construct $(gconfig__h) to reflect the environment. 80INCLUDE=/djgpp/include 81$(gconfig__h): $(GLSRCDIR)/dvx-tail.mak $(ECHOGS_XE) 82 $(ECHOGS_XE) -w $(gconfig__h) -x 2f2a -s This file was generated automatically. -s -x 2a2f 83 $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIME_H 84 $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_DIRENT_H 85 86# ----------------------------- Main program ------------------------------ # 87 88# Interpreter main program 89 90$(GS_XE): ld.tr gs.$(OBJ) $(INT_ALL) $(LIB_ALL) $(DEVS_ALL) 91 $(CP_) ld.tr _temp_ 92 echo $(EXTRALIBS) $(STDLIBS) >>_temp_ 93 $(CC) $(LDFLAGS) -o $(GS) gs.$(OBJ) @_temp_ 94 strip $(GS) 95 coff2exe $(GS) 96 del $(GS) 97