# $Copyright:	$
# Copyright (c) 2000 by Steve Baker
# All rights reserved
#  
# This software is provided as is without any express or implied
# warranties, including, without limitation, the implied warranties
# of merchantability and fitness for a particular purpose.

CC=gcc

#CFLAGS=-O -m486 -fshort-enums
#CFLAGS=-O -m486 -fshort-enums -pg

#CFLAGS=-fshort-enums -export-dynamic
SFLAGS=-O -m486 -fshort-enums -shared -fPIC

#LDFLAGS=-s
LIBS=-ldl

SHARED=io.so

DEST=clam

all:	$(OBJS) $(SHARED)

%.so: %.c ../lang.h
	$(CC) $(SFLAGS) -o $@ $< $(LDFLAGS)


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