DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T d

⟦bc1919f22⟧ TextFile

    Length: 4200 (0x1068)
    Types: TextFile
    Names: »dos-ega.mak«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦ff23ba0e6⟧ »./ghostscript-1.3.tar.Z« 
        └─⟦a24a58cd3⟧ 
            └─⟦this⟧ »dos-ega.mak« 

TextFile

#    Copyright (C) 1989 Aladdin Enterprises.  All rights reserved.
#    Distributed by Free Software Foundation, Inc.
#
# This file is part of Ghostscript.
#
# Ghostscript is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
# to anyone for the consequences of using it or for whether it serves any
# particular purpose or works at all, unless he says so in writing.  Refer
# to the Ghostscript General Public License for full details.
#
# Everyone is granted permission to copy, modify and redistribute
# Ghostscript, but only under the conditions described in the Ghostscript
# General Public License.  A copy of this license is supposed to have been
# given to you along with Ghostscript so you can know your rights and
# responsibilities.  It should be in a file named COPYING.  Among other
# things, the copyright notice and this notice must be preserved on all
# copies.

# makefile for Ghostscript, MS-DOS/Turbo C/EGA configuration.

# ------------------------------- Options ------------------------------- #

####### The following are the only parts of the file you should need to edit.

# Define the compilation flags (passed to cc).
# -1	
#	enables use of 80186/80286 opcodes (not protected mode).
#	  Compiled code is slightly smaller and faster,
#	  but will not run on an 8088 or 8086 system.
# -DFOR80386
#	enables use of 80386 opcodes (not protected mode).
#	  Compiled code is slightly smaller and significantly faster,
#	  but will only run on an 80386 system.
# -y -M
#	enables source-level debugging (Turbo Debug) or profiling (tcprof).
#	  (No execution time or size penalty, just larger .OBJ and .EXE
#	  files.)
# -DDEBUG
#	includes debugging features (-Z switch) in the code.
#	  Code runs significantly slower even if no debugging switches
#	  are set.
# -DNOPRIVATE
#	makes private (static) procedures and variables public,
#	  so they are visible to the debugger and profiler.
#	  No execution time or space penalty, just larger .OBJ and .EXE files.

CCFLAGS=-1 -DFOR80386 -y -M -DDEBUG -DNOPRIVATE

# Define flags for assembly code (passed to masm).
# /DFOR80386 enables use of 80386 opcodes (not protected mode).
#   Code is slightly smaller and significantly faster.

ASMFLAGS=/DFOR80386

# ---------------------------- End of options ---------------------------- #

# Define the extensions for the object and executable files.

OBJ=obj
XE=.exe

# Define the memory model for Turbo C.  Don't change it!

MM=l

# Define the compilation rules.

.c.obj:
	cc -m$(MM) $(CCFLAGS) -c $*

CCNA=ccna -m$(MM) $(CCFLAGS) -c

.asm.obj:
	masm $(ASMFLAGS) $*;

# Define whether to use the BIOS or direct addressing
# for accessing the EGA.

EGADEV=gdevegad

# --------------------------- Generic makefile ---------------------------- #

!include "ghost.mak"

# ---------------------------- Device drivers ---------------------------- #

## The EGA device

DEVEGA=gdevegac.$(OBJ) gdevegaa.$(OBJ)

gdevegac.$(OBJ): gdevegab.$(OBJ) gdevegad.$(OBJ)
	copy $(EGADEV).$(OBJ) gdevegac.$(OBJ)

EGA=ega.$(OBJ) trace.$(OBJ) $(DEVEGA)
ega.exe: $(EGA)
	tlink /m /l @ega.tl

ega.$(OBJ): ega.c gx.h gsmatrix.h gxbitmap.h gxdevice.h

# Note: gdevega.h includes gs.h, gsmatrix.h, gxbitmap.h, and gxdevice.h.
# There is no way to express this indirect dependency in the makefile.

GDEVEGAH=gs.h gdevega.h gsmatrix.h gxbitmap.h gxdevice.h

gdevegad.$(OBJ): gdevegad.c $(GDEVEGAH)
	$(CCNA) $*

gdevegaa.$(OBJ): gdevegaa.asm

gdevegab.$(OBJ): gdevegab.c $(GDEVEGAH)

# -------------------------------- Library -------------------------------- #

gp-dos.$(OBJ): gp-dos.c

# Choose the output device

DEVFORDOS=$(DEVEGA)
LIBDOS=$(LIB) $(DEVFORDOS) gp-dos.$(OBJ)

# ------------------------------ Interpreter ------------------------------ #

iutilasm.$(OBJ): iutilasm.asm

# ----------------------------- Main program ------------------------------ #

# Tracing package

trace.obj: trace.c
	$(CCNA) trace

# Library test program

gt.exe: gt.$(OBJ) $(LIBDOS) gsmain.$(OBJ) trace.$(OBJ)
	tlink /m /l @gt.tl

# Interpreter main program

gs.exe: gs.$(OBJ) $(INT) iutilasm.$(OBJ) gsmain.$(OBJ) trace.$(OBJ) $(LIBDOS)
	tlink /m /l @gs.tl