#
# The following 'make' description file should be used as a 'Makefile'        
# template for all new ODE TM development.  This template along with the      
# included description file, 'tmMakefile,' support a hierarchical or          
# distributed development environment.  Each directory within the             
# development environment has its own 'make' description file, which          
# controls the build process for that directory's 'product.'  A               
# 'product' can be either an archive library (e.g. pio.a), an actual          
# binary (e.g. TDIAG), or null (i.e. the directory contains only include      
# files).  The actual binary for the TM should only be specified in the       
# root directory where linking will occur.  Furthermore, the              
# description file in the individual directories is also responsible          
# for launching 'makes' in subordinate directories  as appropriate       
#                                                                             
# The available macros to be filled in are described below (the description 
# is above each macro)
#

#
# Specifies the root directory for the ODE platform files.  Typically         
# this macro should be defined as "/source/ODE/Current" during development    
# and as "/source/ODE/Int" during integration.  For integration, its value 
# should be specified on the command line.                 
# (e.g. $> make ODE_ROOT=/source/ODE/Int ). 
#
ODE_ROOT = /source/ODE/64_BIT
BLDDIR = /source/RAGE/$(LOGNAME)/src/build

#
# Specifies a pattern that matches editor or other temporary files.           
# This macro is used by several utility rules                                 
#
TMPFILES = *~

#
# Specifies the name of the product, which will be built in this              
# directory. If this directory is not the link directory than this macro      
# should be an archive library or null.                                       
#
PRODUCT = 

#
# Specifies C source files in this directory                                  
#
CFILES = 




#
# Specifies assembly source files in this directory                           
#
SFILES = 


#
# Specifies header files in this directory                                    
#

CALLER_HFILE = 

# Please note that there are quite a lot of header files. Any new file,
# if added, should go in the sorted order as here.
#
HFILES =  a.out.h \
	  acct.h \
	  adfs_fs.h \
	  adfs_fs_i.h \
	  adfs_fs_sb.h \
	  affs_fs.h \
	  affs_fs_i.h \
	  affs_fs_sb.h \
	  affs_hardblocks.h \
	  amifd.h \
	  amifdreg.h \
	  amigaffs.h \
	  apm_bios.h \
	  arcdevice.h \
	  atalk.h \
	  atari_rootsec.h \
	  auto_fs.h \
	  autoconf.h \
	  awe_voice.h \
	  ax25.h \
	  b1lli.h \
	  b1pcmcia.h \
	  baycom.h \
	  binfmts.h \
	  bios32.h \
	  bitops.h \
	  blk.h \
	  blkdev.h \
	  bpqether.h \
	  busmouse.h \
	  capability.h \
	  capi.h \
	  cd1400.h \
	  cdk.h \
	  cdrom.h \
	  coda.h \
	  coda_cache.h \
	  coda_fs_i.h \
	  coda_linux.h \
	  coda_opstats.h \
	  coda_proc.h \
	  coda_psdev.h \
	  coff.h \
	  comstats.h \
	  concap.h \
	  config.h \
	  console.h \
	  console_struct.h \
	  consolemap.h \
	  ctype.h \
	  cyclades.h \
	  dcache.h \
	  delay.h \
	  devpts_fs.h \
	  digi1.h \
	  digiFep1.h \
	  digiPCI.h \
	  dio.h \
	  dirent.h \
	  dlists.h \
	  dmascc.h \
	  dtlk.h \
	  efs_dir.h \
	  efs_fs.h \
	  efs_fs_i.h \
	  efs_fs_sb.h \
	  efs_vh.h \
	  elf.h \
	  elfcore.h \
	  epca.h \
	  epcaconfig.h \
	  errno.h \
	  errqueue.h \
	  etherdevice.h \
	  ext2_fs.h \
	  ext2_fs_i.h \
	  ext2_fs_sb.h \
	  fat_cvf.h \
	  fb.h \
	  fcdevice.h \
	  fcntl.h \
	  fd.h \
	  fddidevice.h \
	  fdreg.h \
	  file.h \
	  filter.h \
	  firewall.h \
	  fs.h \
	  ftape-header-segment.h \
	  ftape-vendors.h \
	  ftape.h \
	  genhd.h \
	  ghash.h \
	  hayesesp.h \
	  hdlcdrv.h \
	  hdreg.h \
	  hfmodem.h \
	  hfs_fs.h \
	  hfs_fs_i.h \
	  hfs_fs_sb.h \
	  hfs_sysdep.h \
	  hippidevice.h \
	  hpfs_fs.h \
	  hpfs_fs_i.h \
	  hpfs_fs_sb.h \
	  lif_fs_i.h \
	  i2c.h \
	  icmp.h \
	  icmpv6.h \
	  if.h \
	  if_arcnet.h \
	  if_arp.h \
	  if_cablemodem.h \
	  if_ec.h \
	  if_eql.h \
	  if_ether.h \
	  if_fc.h \
	  if_fddi.h \
	  if_frad.h \
	  if_hippi.h \
	  if_ltalk.h \
	  if_packet.h \
	  if_plip.h \
	  if_ppp.h \
	  if_pppvar.h \
	  if_shaper.h \
	  if_slip.h \
	  if_strip.h \
	  if_tr.h \
	  if_tunnel.h \
	  igmp.h \
	  in.h \
	  in6.h \
	  in_route.h \
	  in_systm.h \
	  inet.h \
	  inetdevice.h \
	  init.h \
	  interrupt.h \
	  ioctl.h \
	  ioport.h \
	  ip.h \
	  ip_fw.h \
	  ip_masq.h \
	  ipc.h \
	  ipsec.h \
	  ipv6.h \
	  ipv6_route.h \
	  ipx.h \
	  irda.h \
	  isdn.h \
	  isdn_compat.h \
	  isdn_divertif.h \
	  isdn_ppp.h \
	  isdnif.h \
	  isicom.h \
	  iso_fs.h \
	  iso_fs_i.h \
	  iso_fs_sb.h \
	  istallion.h \
	  joystick.h \
	  kbd_diacr.h \
	  kbd_kern.h \
	  kbd_ll.h \
	  kd.h \
	  kdev_t.h \
	  kernel.h \
	  kernel_stat.h \
	  kernelcapi.h \
	  keyboard.h \
	  kmod.h \
	  lapb.h \
	  limits.h \
	  linkage.h \
	  linux_logo.h \
	  list.h \
	  lists.h \
	  locks.h \
	  loop.h \
	  lp.h \
	  lp_intern.h \
	  lp_m68k.h \
	  lp_mfc.h \
	  major.h \
	  malloc.h \
	  mc146818rtc.h \
	  mca.h \
	  md.h \
	  minix_fs.h \
	  minix_fs_i.h \
	  minix_fs_sb.h \
	  miscdevice.h \
	  mm.h \
	  mman.h \
	  modsetver.h \
	  module.h \
	  mount.h \
	  mpp.h \
	  mroute.h \
	  msdos_fs.h \
	  msdos_fs_i.h \
	  msdos_fs_sb.h \
	  msg.h \
	  mtio.h \
	  nbd.h \
	  ncp.h \
	  ncp_fs.h \
	  ncp_fs_i.h \
	  ncp_fs_sb.h \
	  ncp_mount.h \
	  net.h \
	  netbeui.h \
	  netdevice.h \
	  netlink.h \
	  netrom.h \
	  nfs.h \
	  nfs3.h \
	  nfs_fs.h \
	  nfs_fs_i.h \
	  nfs_fs_sb.h \
	  nfs_mount.h \
	  nfsiod.h \
	  nls.h \
	  notifier.h \
	  ntfs_fs.h \
	  ntfs_fs_i.h \
	  ntfs_fs_sb.h \
	  nubus.h \
	  nvram.h \
	  openpic.h \
	  pagemap.h \
	  param.h \
	  parport.h \
	  parport_pc.h \
	  pc_keyb.h \
	  pci.h \
	  personality.h \
	  pg.h \
	  pipe_fs_i.h \
	  pkt_cls.h \
	  pkt_sched.h \
	  poll.h \
	  posix_types.h \
	  ppp-comp.h \
	  ppp.h \
	  ppp_defs.h \
	  prctl.h \
	  proc_fs.h \
	  ps2esdi.h \
	  ptrace.h \
	  qic117.h \
	  qnx4_fs.h \
	  qnx4_fs_i.h \
	  qnx4_fs_sb.h \
	  qnxtypes.h \
	  quota.h \
	  quotaops.h \
	  raid0.h \
	  raid1.h \
	  raid5.h \
	  random.h \
	  reboot.h \
	  resource.h \
	  rocket.h \
	  romfs_fs.h \
	  romfs_fs_i.h \
	  romfs_fs_sb.h \
	  rose.h \
	  route.h \
	  rpcsock.h \
	  rtnetlink.h \
	  sc26198.h \
	  scc.h \
	  sched.h \
	  sdla.h \
	  sdla_fr.h \
	  sdla_ppp.h \
	  sdla_x25.h \
	  sdladrv.h \
	  sdlasfm.h \
	  securebits.h \
	  selection.h \
	  sem.h \
	  serial.h \
	  serial167.h \
	  serialP.h \
	  serial_reg.h \
	  shm.h \
	  signal.h \
	  skbuff.h \
	  slab.h \
	  smb.h \
	  smb_fs.h \
	  smb_fs_i.h \
	  smb_fs_sb.h \
	  smb_mount.h \
	  smbno.h \
	  smp.h \
	  smp_lock.h \
	  socket.h \
	  sockios.h \
	  som.h \
	  sound.h \
	  soundcard.h \
	  soundmodem.h \
	  stallion.h \
	  stat.h \
	  stddef.h \
	  string.h \
	  swap.h \
	  swapctl.h \
	  synclink.h \
	  sys.h \
	  sysctl.h \
	  sysrq.h \
	  sysv_fs.h \
	  sysv_fs_i.h \
	  sysv_fs_sb.h \
	  tasks.h \
	  tcp.h \
	  termios.h \
	  time.h \
	  timer.h \
	  times.h \
	  timex.h \
	  tpqic02.h \
	  tqueue.h \
	  trdevice.h \
	  tty.h \
	  tty_driver.h \
	  tty_flip.h \
	  tty_ldisc.h \
	  types.h \
	  udp.h \
	  ufs_fs.h \
	  ufs_fs_i.h \
	  ufs_fs_sb.h \
	  uio.h \
	  ultrasound.h \
	  umsdos_fs.h \
	  umsdos_fs.p \
	  umsdos_fs_i.h \
	  un.h \
	  unistd.h \
	  user.h \
	  utime.h \
	  uts.h \
	  utsname.h \
	  vfs.h \
	  video_decoder.h \
	  video_encoder.h \
	  videodev.h \
	  videotext.h \
	  vmalloc.h \
	  vt.h \
	  vt_buffer.h \
	  vt_kern.h \
	  wait.h \
	  wanpipe.h \
	  wanrouter.h \
	  watchdog.h \
	  wavefront.h \
	  wireless.h \
	  wrapper.h \
	  x25.h \
	  yam.h \
	  zftape.h \
	  zorro.h \
	  lif_fs_sb.h \
	  version.h

#
# Specifies any archive libraries whose 'Makefiles' will be launched          
# from the 'Makefile' in this directory.                                      
#
SUBLIBS = 


#
# Specifies any "include-file-only" directories whose 'Makefiles' will        
# be launched from the 'Makefile' in this directory.  Note, the trailing      
# "/" must be included in the path.                                           
#
INC = 

#
# Specifies any ODE shared library stub files.  This macro should only be     
# defined in the link directory's 'Makefile.'                                
#
SHAREDLIBSTUBS = 


#
# Specifies any archive libraries or object files for which source is         
# not available.  This macro should only be defined in the link               
# directory's 'Makefile.'  Note, the files defined in this macro are
# considered to be under RCS control.                                         
#
LOCALLIBS = 

#
# Specifies any other libraries needed to complete the build.  This macro     
# should only be defined in the link directory's 'Makefile.'  Note, any       
# files defined in this macro are not considered to be under RCS control.
#
OTHERLIBS = 

#
# Specifies paths for include files. Note the '-I' options must preceed every 
# include path.  Note--it is not necessary to include the paths to tm.h or
# dl_syslib.h in this macro.                                                   
#
INCLUDEPATHS = -I ../include
               

#
# Specifies "define" options to the complier.  Typically this would be        
# specified on the 'make' command line.                                       
# (e.g. $> make DEF="-DDEBUG -DFOO" )                                         
#
DEF = -D__KERNEL__

#
# Specifies any complier flags other than the default
# When expanded the complier command-line flags are the following:
# CFLAGS = -Aa +ESrel $(OTHERCFLAGS) $(DEF) -c $(INCLUDEPATHS) -I
#          $(ODE_ROOT)/inc                                                    
#
OTHERCFLAGS =


#
# Specifies a prefix string for all object files and products.  If non-null, 
# this macro always forces a rebuild of the object files. A prefix would
# typically be used on the 'make' command line in conjunction with the 
# DEF macro.
# (e.g. $> make DEF=-DDEBUG PFX=DBG )                                         
#
PFX = 

#
# Forces a rebuild of the object files if non-null.  Typically this           
# would be specified on the 'make' command line.                              
# (e.g. $> make FRC=t )                                                       
#
FRC = 

#
# Specifies the name of the linker command file.                              
#
LNKCMDFILE = 

#
# Specifies an RCS label to associate with each source file.  Typically       
# this would be specified on the 'make' command line along with the           
# 'label' rule.                                                               
# (e.g. $> make label LABEL=UX903IC1 )                                        
#
LABEL = 

#
# Note, when invoking 'make' to do an actual product build, the               
# definition of the above four macros, FRC, DEF, PFX, and LABEL are           
# passed down to the 'Makefiles' in the INC and SUBLIBS directories.          
#

#
# The following line should be included in every 'Makefile' in every          
# directory.  It specifies that the description file, 'tmMakefile,' should be 
# included. 'tmMakefile' contains all the build rules as well as a host of    
# utility rules.                                                              
#                                                                             
# Any developer-specific utility rules or header file dependencies should     
# go after this line.                                                         
#
include	$(BLDDIR)/tmMakefile64

#TMCRT0 = $(ODE_ROOT)/lib/sl_crt064.o
TMCRT0 = 

install:
	$(RM) -f $(ODE_ROOT)/inc/$(CALLER_HFILE)
	cp $(CALLER_HFILE) $(ODE_ROOT)/inc/$(CALLER_HFILE)
	strip $(PRODUCT)
	cp $(PRODUCT) $(ODE_ROOT)/src/bld
	/source/newtools/crunch $(PRODUCT) $(PRODUCT).z
	cp $(PRODUCT) /mnt/ftp/pub/Sldev
	cp $(PRODUCT).z /mnt/ftp/pub/Sldev

#
# The following utility rules are available in 'tmMakefile.'                  
#

#
# Removes all o-files with prefix 'PFX' in current directory
#
# clean:

#
# Performs a 'clean' and removes the 'product' from the current directory     
#
# clobber: 

#
# Remove all tmp files in current directory                                   
#
# cleanTmp:

#
# Echos sources                                                               
#
# echo:

#
# Echos all sources                                                           
#
# echoAll:

#
# Echos sources with absolute path names                                      
#
# echoPath:

#
# Echos all sources with absolute path names                                  
#
# echoPathAll:

#
# Checks out sources in current directory                                     
#
# checkOut: 

#
# Performs a 'make' but doesn't check out sources from RCS                    
#
# noCheckOut:

#
# Checks out sources in current directory and all subdirectories              
#
# checkOutAll:

#
# Labels sources in current directory with $(LABEL)                           
#
# label:

#
# Label all sources in current directory and subdirectories                   
#
# labelAll:

#
# Performs a 'clobber' in current directory and all subdirectories            
#
# nuke: 

#
# Performs a 'cleanTmp' in current directory and all subdirectories           
#
# nukeTmp: 

ODELIB    = $(ODE_ROOT)/lib
FTP_ROOT  = /mnt3/ftp/pub/offline
FTP_EXP   = $(FTP_ROOT)/exp
FTP_HACK  = $(FTP_ROOT)/hack
FTP_STABLE = $(FTP_ROOT)/stable

SYSLIB      = $(ODE_ROOT)/lib/SYSLIB
ODE         = $(ODE_ROOT)/lib/ODE
ISL         = $(ODE_ROOT)/lib/isl
MAP_FILE    = $(FTP_EXP)/MAPFILE
CONFIG_FILE = $(FTP_EXP)/CONFIGDATA
SL_DRIVERS  = $(FTP_EXP)/SLDRV2
SL_MOD      = $(FTP_EXP)/SLMOD2

LIF = $(PRODUCT)lif

lif:
	rm -f $(LIF)
	mkbootlf -d$(LIF) -i$(ISL) -n $(PRODUCT) \
	12960 $(ODE) \
	12280 $(SYSLIB) \
	12277 $(MAP_FILE) \
	12278 $(CONFIG_FILE) \
	12276 $(SL_MOD) \
	12276 $(PRODUCT) \
	12276 $(SL_DRIVERS) \
	12279 $(FTP_EXP)/MAPPER

include $(ODE_ROOT)/src/tm/lifMakefile
