# The mighty sausage makefile
# just type 'make' to make both makesaus and libsau.a
# http://brennan.home.ml.org/
#
OBJS = sausage.o
LFLAGS = -L. -L../zlib
LIBS = -lsau
#CFLAGS = -O2 -m486 -g -DSAUSLIB -Wall -fomit-frame-pointer
CFLAGS = -g -DSAUSLIB -Wall

all: makesaus libsau.a

makesaus: makesaus.o
	$(CC) $(CFLAGS) $(LFLAGS) -o $@ makesaus.o
	stubedit makesaus.exe bufsize=63k

libsau.a: $(OBJS)
	ar rvc $@ $(OBJS)
	ranlib $@

$(OBJS): sausage.h sauspriv.h

clean:
	del *.o
	del *.a

dist:
	del saus01b.zip
	pkzip saus01b.zip readme makefile sausage.c sausage.h sauspriv.h makesaus.c
