changeset 1865:c6426b9ca0da

Added rules for .r generation
author boisy
date Wed, 27 Jul 2005 01:19:23 +0000
parents f351932fa6cd
children 5b15baeed060
files rules.mak
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rules.mak	Tue Jul 26 01:17:24 2005 +0000
+++ b/rules.mak	Wed Jul 27 01:19:23 2005 +0000
@@ -20,6 +20,8 @@
 
 #################### DO NOT CHANGE ANYTHING BELOW THIS LINE ####################
 
+CC		= c3
+
 NITROS9VER	= v0$(NOS9VER)0$(NOS9MAJ)0$(NOS9MIN)
 
 ifndef	NITROS9DIR
@@ -86,6 +88,16 @@
 6809L2		= $(NITROS9DIR)/6809l2
 6309L2		= $(NITROS9DIR)/6309l2
 
+# C-Cubed Rules
+%.r: %.c
+	$(CC) $(CFLAGS) $< -r
+
+%: %.r
+	$(CC) $(LFLAGS) $^ -f=$@
+
+%.r: %.a
+	rma $< -o=$@
+
 # File managers
 %.mn: %.asm
 	$(AS) $(AFLAGS) $< $(ASOUT)$@