#
# Makefile:  embeded Squeak for UNIX
# author: Marcus Denker <marcus@ira.uka.de>
#


# C-Flags for debugging
DEBUGFLAGS= -g -DEMBEDDED 

# C-Flags for the end-User Version
OPTFLAGS=  -O3 -m486 -fomit-frame-pointer -funroll-loops -DEMBEDDED

LDFLAGS = -lm -static

# Debugging or End-User ?
#CFLAGS = ${DEBUGFLAGS}
CFLAGS = ${OPTFLAGS}

OBJS = interp.o \
       sqFilePrims.o \
       sqEmbedded.o \
       sqMiscPrims.o \
       ImageFileInMemory.o

%.o : %.c
	$(CC) -c -o $@ $< -I. $(CFLAGS)   

all:    esqueak

esqueak: ${OBJS}
	gcc  -o esqueak *.o $(LDFLAGS)