# gcc Makefile for FBBI v0.98
# v0.98 Oct 1 1998 Chris Pressey
# Copyunder (u)1998 Cat's-Eye Technologies, http://www.cats-eye.com/
# See http://www.cats-eye.com/license/ for license information.
# Thanks go to Sam Holden for posting his FBBI makefile to the list...

CC=gcc
CFLAGS=-ansi -pedantic -g -Wall -O
OBJECTS=\
	bf98spc.o\
	f98fp.o\
	f98i.o\
	f98ip.o\
	f98stack.o\
	fbbi.o\
	fp/NULL.o\
	fp/ROMA.o\

all: fbbi

fbbi: $(OBJECTS)

clean:
	rm *.o
	rm fp/*.o
	strip fbbi
	mv fbbi ../bin/fbbi

cleandos:
	del *.o
	del fp\*.o
	del fbbi
	strip fbbi.exe
	move fbbi.exe "..\bin\fbbi.exe"

# Gahh... this is clumsy and icky.  If you need a makefile for the
# mini version, I'm sure you can find a better way.
#
# MINIOBJECTS=\
#	bf98spc.mo\
#	f98fp.mo\
#	f98i.mo\
#	f98ip.mo\
#	f98stack.mo\
#	fbbi.mo\
#
#%.mo : %.c
#	$(CC) -c $(CFLAGS) -DFBBI_MINIMAL $<
#
#fbbimini: $(MINIOBJECTS)
#	$(CC) $(CFLAGS) *.o -o "..\dos32\fbbimini.exe"
#	strip "..\dos32\fbbimini.exe"
#	del *.o
