home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume28
/
backprop
/
part03
/
makefile
< prev
next >
Wrap
Makefile
|
1992-02-23
|
2KB
|
61 lines
#
# This makefile can be used to make all 4 programs but note that
# it is designed to make compiling the integer version bp easy
# by keeping its object files around. The other 3 programs erase
# their object files.
#
# Below, where I say 32-bit floating point or 64-bit floating point,
# note that the program uses some floating point instructions even the
# integer versions, bp and sbp. In standard UNIX C all floating point
# arithmetic is done as double so using double values actually is faster
# than using float values (because all the covnersions take time).
# To use float rather than double define FLOAT like so: -DFLOAT
#
# To get the compiler to use 32-bit DOS settings include: -DDOS32
# To get the compiler to use 16-bit DOS settings include: -DDOS16
#
# Below are the settings I've been using for Zortech 3.0.
# The -f flag in the ZORTECH CFLAGS forces hardware floating point
# instructions to be generated. The -o is for optimize, -m is used
# to give the memory model. NOTE that in the following makefile I don't
# use the Zortech optimization flag -o in the CFLAGS, instead it is used
# in the definitions for bp.obj, misc.obj and int.obj because for
# some reason the compiler bombs when it optimizes io.obj. As its
# set up, sbp, srbp and rbp will not be optimized.
#
# use the following line for DOS/ZORTECH (486)
#CFLAGS= -mx -4 -f -DFLOAT -DDOS32
# use the following line for DOS/ZORTECH (386)
#CFLAGS= -mx -3 -DFLOAT -DDOS32
# use the following line for DOS/ZORTECH (286)
#CFLAGS= -mz -2 -f -DFLOAT -DDOS16
# use the following line for DOS/ZORTECH (8088) large memory model
CFLAGS= -ml -f -DFLOAT -DDOS16
bp: bp.obj io.obj misc.obj int.obj makefile ibp.h
ztc $(CFLAGS) bp.obj io.obj misc.obj int.obj -obp.exe
sbp:
ztc -DINTEGER -DSYMMETRIC int.c bp.c io.c misc.c $(CFLAGS) -osbp.exe
erase *.obj
rbp:
ztc real.c bp.c io.c misc.c $(CFLAGS) -orbp.exe
erase *.obj
srbp:
ztc -DSYMMETRIC real.c bp.c io.c misc.c $(CFLAGS) -osrbp.exe
erase *.obj
bp.obj: bp.c ibp.h makefile
ztc -DINTEGER $(CFLAGS) bp.c -c -o
io.obj: io.c ibp.h makefile
ztc -DINTEGER $(CFLAGS) io.c -c
misc.obj: misc.c ibp.h makefile
ztc -DINTEGER $(CFLAGS) misc.c -c -o
int.obj: int.c ibp.h makefile
ztc -DINTEGER -DSMART $(CFLAGS) int.c -c -o