
# Makefile for Bouncing Planets demo
# (Simon Hern, 1994)


M=s             # Model
CPL=tcc         # Compiler
LNK=tlink       # Linker
ASM=a86         # Assembler
XLIB=xlib06     # Library


all : planets.exe makegush.exe makexion.exe


# Main demo executable

planets.exe : planets.obj gushcode.obj
  $(LNK) c0$(M) planets gushcode, planets, planets,\
         emu math$(M) c$(M) $(XLIB)$(M).lib

planets.obj : planets.c planet.h
  $(CPL) -m$(M) -c planets.c

gushcode.obj : gushcode.asm
  $(ASM) gushcode.asm gushcode.obj


# Program to create Gush data

makegush.exe : makegush.c planet.h
  $(CPL) -m$(M) makegush.c $(XLIB)$(M).lib


# Program to create Xion data

makexion.exe : makexion.obj xioncode.obj
  $(LNK) c0$(M) makexion xioncode, makexion, makexion,\
         emu math$(M) c$(M) $(XLIB)$(M).lib

makexion.obj : makexion.c planet.h
  $(CPL) -m$(M) -c makexion.c

xioncode.obj : xioncode.asm
  $(ASM) xioncode.asm xioncode.obj

