#
# Amiga SAS C 6.x Makefile for Eval.  Uses Amiga IEEE libraries.
#
# Since Eval does not need a lot of speed, the IEEE libraries
# (which auto-detect the 68881/2 if available but are slower than
# native 68881/2 code) are sufficient, and they keep the code smaller.
#
CC=sc
CCFLAGS=nolink math=ieee
LN=sc
LNFLAGS=math=ieee
LIBC=
LIBM=
EXE=
OBJ=.o
HEADER=eval.h
OBJFILES=eval$(OBJ) funcs$(OBJ) parse$(OBJ) estack$(OBJ) base$(OBJ) \
         bitwise$(OBJ) etable$(OBJ) help$(OBJ) emath$(OBJ)

.c$(OBJ):
	$(CC) $(CCFLAGS) $*.c

$(OBJFILES):	$(HEADER)

eval$(EXE):	$(OBJFILES)
	$(LN) $(LNFLAGS) $(OBJFILES) $(LIBM) $(LIBC)

all:	eval$(EXE)
