# Micro-Windows libfonts.a library makefile for DJGPP
# by Georg Potthast June 2011
# based on makefile by Greg Haerr and V. Rogachev
#
# include next line if you have converted MS fonts with convfnt32.exe
#HAVEMSFONTS=1

LIB=libfonts.a
#OBJECTS=helvB10.o helvB12.o helvR10.o symbol.o rom8x16.o rom8x8.o\
#	winFreeSansSerif11x13.o winFreeSystem14x16.o X5x7.o X6x13.o
	#timBI18.o

OBJECTS=rom8x16.o rom8x8.o\
	winFreeSansSerif11x13.o winFreeSystem14x16.o X6x13.o

ifdef HAVEMSFONTS
OBJECTS+=winMSSansSerif11x13.o winSystem14x16.o winTerminal8x12.o
endif

all: $(LIB)

clean:
	rm -f *.o *.a core

realclean: clean
	rm -f helvB10.c helvB12.c helvR10.c timBI18.c

$(LIB): $(OBJECTS)
#	$(AR) rcs $(MW_DIR_SRC)/lib/$(LIB) $(OBJECTS)

helvR10.c:	helvR10.bdf
	./convbdf helvR10.bdf > helvR10.c

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

helvB10.c:	helvB10.bdf
	./convbdf helvB10.bdf > helvB10.c

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

helvB12.c:	helvB12.bdf
	./convbdf helvB12.bdf > helvB12.c

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

timBI18.c:	timBI18.bdf
	./convbdf timBI18.bdf > timBI18.c

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