home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
POSTSCRI
/
PSFIX.ZIP
/
PSFIX.MAK
< prev
next >
Wrap
Text File
|
1991-04-11
|
3KB
|
137 lines
#------------------------------------------------------------------------------
#
# make file for psfix
#
#------------------------------------------------------------------------------
#
# command line options:
#
# -DD debug
# -DX generate cross reference
#
#------------------------------------------------------------------------------
#
# BC++ floating point:
# -f- none
# -f emulate
# -f87 use 8087 instructions
# -f287 use 80287 instructions
# -ff "fast" floating point
# -ff- strict ANSI floating point
#
#------------------------------------------------------------------------------
#
# BC++ compiler debugging:
# -k standard stack frame
# -N stack overflow checking
# -O- turn off optimization
# -v turn on source debugging
# -vi- turn off inline expansion
# -y include line number info
#
#------------------------------------------------------------------------------
.swap
.autodepend
#------------------------------------------------------------------------------
#
# project definitions
#
#------------------------------------------------------------------------------
PROJ = psfix
OBJLIS = psfix.obj strlib.obj fileio.obj vectdef.obj
EXE = psfix.exe
MEM = s
FLOAT = -f-
DEFS = -DNO_FLOAT
#------------------------------------------------------------------------------
#
# other definitions
#
#------------------------------------------------------------------------------
#
# compiling
#
COM = bccx
CFLGS = -H=$(PROJ).sym -m$(MEM) $(FLOAT) $(DEFS)
CDEBUG = -k -N -O- -v -vi- -y -DDEBUG
#
# linking
#
LNK = tlinkx
LFLGS = /c /d /x
LDEBUG = /v
STARTUP = lib\c0$(MEM).obj
RUNTIME = lib\c$(MEM).lib
#
# cross referencer
#
XREF = objxref
XFLGS = /rm /ru /rp /rx /o$(PROJ).xrf
#
# misc
#
DELETE = rm
#
# cross reference generation
#
!if $d(X)
XRF = $(XREF) $(XFLGS) $(OBJLIS)
!endif
#------------------------------------------------------------------------------
#
# link
#
#------------------------------------------------------------------------------
!if $d(D)
!if $d(X)
$(EXE) : $(OBJLIS)
$(LNK) $(LFLGS) $(LDEBUG) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
$(XRF)
!else
$(EXE) : $(OBJLIS)
$(LNK) $(LFLGS) $(LDEBUG) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
!endif
!else
!if $d(X)
$(EXE) : $(OBJLIS)
$(LNK) $(LFLGS) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
$(XRF)
!else
$(EXE) : $(OBJLIS)
$(LNK) $(LFLGS) $(STARTUP) $(OBJLIS), $(EXE),,$(RUNTIME)
!endif
!endif
#------------------------------------------------------------------------------
#
# implicit compilation rule
#
#------------------------------------------------------------------------------
!if $d(D)
.c.obj :
$(COM) $(CFLGS) $(CDEBUG) -c{ $<}
!else
.c.obj :
$(COM) $(CFLGS) -c{ $<}
!endif
#
# .obj dependencies
#
psfix.obj : psfix.c psfix.h strlib.h vectdef.h fileio.h
strlib.obj : strlib.c strlib.h vectdef.h mydefs.h
fileio.obj : fileio.c fileio.h strlib.h vectdef.h mydefs.h
vectdef.obj : vectdef.c vectdef.h mydefs.h