view rules.mak @ 752:9e166adbc547

Put /DD back to /H0 like original cc3go, for those wanting to do floppy boots. Also if 'shell startup' fails, cc3go no longer jumps to crash, but instead goes on to try to fork AutoEx
author boisy
date Wed, 08 Jan 2003 14:19:06 +0000
parents 6bb15a5a5821
children d4e296ede9e4
line wrap: on
line source

# Rules for making OS-9/6X09 modules

# These macros should change according to where the base directory of the
# OS-9 source tree is located
BASEDIR		= $(HOME)/os9
OS9TOOLSDIR	= /usr/local/bin
DEFDIR		= $(BASEDIR)/defs


#################### DO NOT CHANGE ANYTHING BELOW THIS LINE ####################


# If we're using the OS-9 emulator and the *real* OS-9 assembler,
# uncomment the following two lines.
#AS		= os9 /mnt2/src/ocem/os9/asm
#ASOUT		= o=

# Use the cross assembler
AS		= $(OS9TOOLSDIR)/os9asm -i=$(DEFDIR)
ASOUT		= -o=
AFLAGS		= -q $(ADDOPTS)

# Commands
MAKDIR		= $(OS9TOOLSDIR)/os9 makdir
RM		= rm -f
MERGE		= cat
ECHO		= echo
CD		= cd
CP		= $(OS9TOOLSDIR)/os9 copy
TAR		= tar
CHMOD		= chmod
IDENT		= $(OS9TOOLSDIR)/os9 ident
IDENT_SHORT	= $(IDENT) -s
UNIX2OS9	= $(OS9TOOLSDIR)/u2o
OS92UNIX	= $(OS9TOOLSDIR)/o2u
OS9FORMAT	= $(OS9TOOLSDIR)/os9 format
OS9GEN		= $(OS9TOOLSDIR)/os9 gen
OS9RENAME	= $(OS9TOOLSDIR)/os9 rename
OS9ATTR		= $(OS9TOOLSDIR)/os9 attr
PADROM		= $(OS9TOOLSDIR)/os9 padrom
MOUNT		= sudo mount
UMOUNT		= sudo umount
LOREMOVE	= sudo /sbin/losetup -d
LOSETUP		= sudo /sbin/losetup
LINK		= ln
SOFTLINK	= $(LINK) -s
ZIP		= zip -D

# Directories
3RDPARTY	= $(BASEDIR)/3rdparty
LEVEL1		= $(BASEDIR)/level1
LEVEL2		= $(BASEDIR)/level2v3
NLEVEL2		= $(BASEDIR)/nitros

# File managers
%.mn: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@

# Device drivers
%.dr: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@

# Device descriptors
%.dd: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@

# Window device descriptors
%.dw: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@

# Terminal device descriptors
%.dt: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@

# I/O subroutines
%.io: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@

# 60Hz clocks
%.60hz: %.asm
	$(AS) -aTPS=60 $(AFLAGS) $< $(ASOUT)$@

# 50Hz clocks
%.50hz: %.asm
	$(AS) -aTPS=50 $(AFLAGS) $< $(ASOUT)$@

# All other modules
%: %.asm
	$(AS) $(AFLAGS) $< $(ASOUT)$@