
LC      = lc
LC1     = lc1b
LC2     = lc2
GO      = go
AS      = asm
LN      = blink

#   -v   disables generation of stack checking code at function calls
#	-t   enables warning messages for not-already-defined struct tags
#	-rr  registerized function calls
#	-ms  shorter size instead of faster execution
#	-cr  enable registerized parameter passing
#	-d5  full debugging information for all symbols and structures
# The following options are recommended by SAS "for the
# best code generation and error reporting".
#	-cu  forces all char declarations to be unsigned char
#	-cs  causes the generation of a single copy of string constants
#	-cf  check for the presence of function prototypes
LCFLAGS = -t -v -rr -ms -crusf -iinclude: -iinclude:chead/ -d5

ASFLAGS = -iinclude:ahead/
RUNCODE = lib:cres.o

#.DEFAULT:
#	$(LC) $(LCFLAGS) $*.c

.c.o:
	$(LC) $(LCFLAGS) $*.c

.a.o:
	$(AS) $(ASFLAGS) -o$*.o $*.s

.h.o:
	delete $*.o
	$(LC) $(LCFLAGS) $*.c

