# This makefile is set up for Linux / GNU make
CC	= gcc
CFLAGS	= -O2 -fPIC -fomit-frame-pointer -Wall

.SUFFIXES: .chr .o

.chr.o:
	./bin2s $*.chr _$*_font $*.s
	$(CC) $(CFLAGS) -c $*.s
#	rm -f $*.s

OBJS = bold.o euro.o goth.o lcom.o litt.o sans.o scri.o simp.o trip.o tscr.o

all: bin2s $(OBJS)

clean:
	@-rm -f bin2s *.s core *.o

cleanall: clean
	rm -f *.o

bin2s: bin2s.c
	$(CC) $(CFLAGS) -o bin2s bin2s.c


